[freeside-commits] freeside/FS/FS Record.pm,1.161,1.162
Ivan,,,
ivan at wavetail.420.am
Mon Jul 7 14:38:52 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv32424
Modified Files:
Record.pm
Log Message:
SQL_FLOAT is probably unnecessary and causes probelms on old (v1.x?) DBD::Pg
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- Record.pm 7 Jul 2008 21:18:15 -0000 1.161
+++ Record.pm 7 Jul 2008 21:38:49 -0000 1.162
@@ -308,12 +308,14 @@
my $TYPE = SQL_VARCHAR;
if ( $type =~ /(int|(big)?serial)/i && $value =~ /^\d+(\.\d+)?$/ ) {
$TYPE = SQL_INTEGER;
- } elsif ( ( $type =~ /(numeric)/i && $value =~ /^[+-]?\d+(\.\d+)?$/)
- || ( $type =~ /(real|float4)/i
- && $value =~ /[-+]?\d*\.?\d+([eE][-+]?\d+)?/
- )
- ) {
- $TYPE = SQL_FLOAT;
+
+ #DBD::Pg 1.49: Cannot bind ... unknown sql_type 6
+ #} elsif ( ( $type =~ /(numeric)/i && $value =~ /^[+-]?\d+(\.\d+)?$/)
+ # || ( $type =~ /(real|float4)/i
+ # && $value =~ /[-+]?\d*\.?\d+([eE][-+]?\d+)?/
+ # )
+ # ) {
+ # $TYPE = SQL_FLOAT;
}
if ( $DEBUG > 2 ) {
More information about the freeside-commits
mailing list