[freeside-commits] freeside/FS/FS Record.pm,1.226.2.1,1.226.2.2

Ivan,,, ivan at wavetail.420.am
Wed Sep 28 22:53:58 PDT 2011


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv27267

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	Record.pm 
Log Message:
fix DBI binding for negative integers, shoudl fix CCH update, RT#14243

Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.226.2.1
retrieving revision 1.226.2.2
diff -u -w -d -r1.226.2.1 -r1.226.2.2
--- Record.pm	12 Aug 2011 21:31:29 -0000	1.226.2.1
+++ Record.pm	29 Sep 2011 05:53:55 -0000	1.226.2.2
@@ -273,7 +273,7 @@
 
   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 };
 



More information about the freeside-commits mailing list