projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
efd0c9e
)
Made change suggested by Daniel Böhringer to allow "ID" integer DEFAULT nextval(...
Ben Faga [Mon, 19 May 2008 20:57:14 +0000 (20:57 +0000)]
lib/SQL/Translator/Parser/PostgreSQL.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Parser/PostgreSQL.pm
b/lib/SQL/Translator/Parser/PostgreSQL.pm
index
66cb74b
..
f0d6ad8
100644
(file)
--- a/
lib/SQL/Translator/Parser/PostgreSQL.pm
+++ b/
lib/SQL/Translator/Parser/PostgreSQL.pm
@@
-884,7
+884,7
@@
create_table : CREATE TABLE
create_index : CREATE /index/i
-default_val : DEFAULT /(\d+|'[^']*'|\w+\(.*?\))|\w+/
+default_val : DEFAULT /(\d+|'[^']*'|\w+\(.*\))|\w+/
{
my $val = defined $item[2] ? $item[2] : '';
$val =~ s/^'|'$//g;