summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-09-29 05:54:25 +0000
committerivan <ivan>2011-09-29 05:54:25 +0000
commitf7fa2159d28bbb66e19ac7b585b2406341ec93df (patch)
tree6d2496b532edc66824d65dfe253b0cc2af3567e3
parentf88a13f394b3132a439608728b31f9fb5026fdfd (diff)
fix DBI binding for negative integers, shoudl fix CCH update, RT#14243
-rw-r--r--FS/FS/Record.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index e5bfb0a89..ad26d6041 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -265,7 +265,7 @@ sub _bind_type {
my $bind_type = { TYPE => SQL_VARCHAR };
- if ( $type =~ /(big)?(int|serial)/i && $value =~ /^\d+(\.\d+)?$/ ) {
+ if ( $type =~ /(big)?(int|serial)/i && $value =~ /^-?\d+(\.\d+)?$/ ) {
$bind_type = { TYPE => SQL_INTEGER };