summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2004-01-18 21:03:54 +0000
committerivan <ivan>2004-01-18 21:03:54 +0000
commit0acc33b64b123f11ac1040629507619d3988bbae (patch)
tree31d07efeeb3bcd8ca92c755d66a99a6d3167069f /FS
parent5edf279b260fd952457af1ab8489eaec7952204a (diff)
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.
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Record.pm4
1 files changed, 2 insertions, 2 deletions
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 } );
}
}