From: ivan Date: Sun, 18 Jan 2004 21:03:54 +0000 (+0000) Subject: revert bind_param change _again_. passing not as a hashref causes too many X-Git-Tag: freeside_1_5_0pre4^2~72 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=0acc33b64b123f11ac1040629507619d3988bbae;p=freeside.git revert bind_param change _again_. passing not as a hashref causes too many other problems. please leave as is. DBD::Pg needs to be fixed. 1.31 is a lost cause. --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 191eee5f0..2517d1841 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -313,9 +313,9 @@ sub qsearch { 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 { - $sth->bind_param($bind++, $record->{$field}, SQL_VARCHAR); + $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_VARCHAR } ); } }