[freeside-commits] freeside/FS/FS Record.pm,1.157,1.158

Ivan,,, ivan at wavetail.420.am
Wed Jul 2 21:19:33 PDT 2008


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

Modified Files:
	Record.pm 
Log Message:
should FINALLY get binding correctly in light of regression caused by get_real_fields refactor

Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- Record.pm	3 Jul 2008 04:12:14 -0000	1.157
+++ Record.pm	3 Jul 2008 04:19:31 -0000	1.158
@@ -302,15 +302,15 @@
     $value = $value->{'value'} if ref($value);
     my $type = dbdef->table($table)->column($field)->type;
     if ( $type =~ /(int|(big)?serial)/i && $value =~ /^\d+(\.\d+)?$/ ) {
-      $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_INTEGER } );
+      $sth->bind_param($bind++, $value, { TYPE => SQL_INTEGER } );
     } elsif (    ( $type =~ /(numeric)/i     && $value =~ /^[+-]?\d+(\.\d+)?$/)
               || ( $type =~ /(real|float4)/i
                      && $value =~ /[-+]?\d*\.?\d+([eE][-+]?\d+)?/
                  )
             ) {
-      $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_FLOAT } );
+      $sth->bind_param($bind++, $value, { TYPE => SQL_FLOAT } );
     } else {
-      $sth->bind_param($bind++, $record->{$field}, { TYPE => SQL_VARCHAR } );
+      $sth->bind_param($bind++, $value, { TYPE => SQL_VARCHAR } );
     }
   }
 



More information about the freeside-commits mailing list