From 924777bf44006dd74dd6cc8643a9c6530e86ff5a Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 29 Sep 2011 05:53:55 +0000 Subject: [PATCH] fix DBI binding for negative integers, shoudl fix CCH update, RT#14243 --- FS/FS/Record.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- 2.11.0