diff options
author | ivan <ivan> | 2011-09-29 05:53:56 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-09-29 05:53:56 +0000 |
commit | e79575e247386092c234a8add08ebfcd072f12f5 (patch) | |
tree | bcde157b912bcee03178ff2e9e80d4cfee985d71 | |
parent | a580ec4316fff403ad71e6bf8caaea064f9c464a (diff) |
fix DBI binding for negative integers, shoudl fix CCH update, RT#14243
-rw-r--r-- | FS/FS/Record.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 5d3d86a7c..bccc8e6d4 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -273,7 +273,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 }; |