projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9c0e29
)
fixes inserting strings that end in numbers to TEXT columns... gah i hate SQL
author
ivan
<ivan>
Tue, 23 Apr 2002 07:10:19 +0000
(07:10 +0000)
committer
ivan
<ivan>
Tue, 23 Apr 2002 07:10:19 +0000
(07:10 +0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
ac8117e
..
f7c3a41
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-1155,7
+1155,7
@@
sub _quote {
my($dbh)=dbh;
if ( $value =~ /^\d+(\.\d+)?$/ &&
# ! ( datatype($table,$field) =~ /^char/ )
- !
( $dbdef->table($table)->column($field)->type =~ /(char|binary)$/i )
+ !
$dbdef->table($table)->column($field)->type =~ /(char|binary|text)$/i
) {
$value;
} else {