projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5c1ffcd
)
needed to tighten up regex added in last commit
John Goulah [Mon, 1 Dec 2008 21:19:50 +0000 (21:19 +0000)]
lib/SQL/Translator/Producer.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Producer.pm
b/lib/SQL/Translator/Producer.pm
index
3fccfc9
..
9f4d3d0
100644
(file)
--- a/
lib/SQL/Translator/Producer.pm
+++ b/
lib/SQL/Translator/Producer.pm
@@
-51,7
+51,7
@@
sub _apply_default_value {
}
}
- my $qc = (grep m/$default/, @noquote)?"":"'";
+ my $qc = (grep m/^$default$/, @noquote)?"":"'";
if (ref $default) {
$$field_ref .= " DEFAULT $$default";
} else {