From: ivan Date: Thu, 29 Sep 2011 05:53:55 +0000 (+0000) Subject: fix DBI binding for negative integers, shoudl fix CCH update, RT#14243 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=924777bf44006dd74dd6cc8643a9c6530e86ff5a;hp=92eba919fabfeea81c298c0741e3800be07b27d0 fix DBI binding for negative integers, shoudl fix CCH update, RT#14243 --- 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 };