projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92eba91
)
fix DBI binding for negative integers, shoudl fix CCH update, RT#14243
author
ivan
<ivan>
Thu, 29 Sep 2011 05:53:55 +0000
(
05:53
+0000)
committer
ivan
<ivan>
Thu, 29 Sep 2011 05:53:55 +0000
(
05:53
+0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
b67f15c
..
e52d094
100644
(file)
--- 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 };