revert bind_param change _again_. passing not as a hashref causes too many
authorivan <ivan>
Sun, 18 Jan 2004 21:03:54 +0000 (21:03 +0000)
committerivan <ivan>
Sun, 18 Jan 2004 21:03:54 +0000 (21:03 +0000)
other problems.  please leave as is.  DBD::Pg needs to be fixed.  1.31 is a
lost cause.

FS/FS/Record.pm

index 191eee5..2517d18 100644 (file)
@@ -313,9 +313,9 @@ sub qsearch {
     if ( $record->{$field} =~ /^\d+(\.\d+)?$/
          && $dbdef->table($table)->column($field)->type =~ /(int|serial)/i
     ) {
     if ( $record->{$field} =~ /^\d+(\.\d+)?$/
          && $dbdef->table($table)->column($field)->type =~ /(int|serial)/i
     ) {
-      $sth->bind_param($bind++, $record->{$field}, SQL_INTEGER);
+      $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_INTEGER } );
     } else {
     } else {
-      $sth->bind_param($bind++, $record->{$field}, SQL_VARCHAR);
+      $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_VARCHAR } );
     }
   }
 
     }
   }