From: khoff Date: Tue, 30 Dec 2003 06:02:17 +0000 (+0000) Subject: Pass type as scalar instead of a hashref to work around a bug in DBD::Pg version... X-Git-Tag: NET_WHOIS_RAW_0_31~209 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=1d2cbbff7fe3600eef0abfb3c0fc0712b3b0506b;p=freeside.git Pass type as scalar instead of a hashref to work around a bug in DBD::Pg version 1.31. --- diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 2517d1841..191eee5f0 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}, { TYPE => SQL_INTEGER } ); + $sth->bind_param($bind++, $record->{$field}, SQL_INTEGER); } else { - $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_VARCHAR } ); + $sth->bind_param($bind++, $record->{$field}, SQL_VARCHAR); } }