summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-09-29 05:53:55 +0000
committerivan <ivan>2011-09-29 05:53:55 +0000
commit924777bf44006dd74dd6cc8643a9c6530e86ff5a (patch)
treead7d2b198d6d405ad328a71da6a7c0308969fa2c
parent92eba919fabfeea81c298c0741e3800be07b27d0 (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 b67f15ca1..e52d09424 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -274,7 +274,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 };