projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix excepted and scalarref quoting for DEFAULTS in SQLite (and SQL Server)
[dbsrgits/SQL-Translator.git]
/
lib
/
SQL
/
Translator
/
Generator
/
DDL
/
SQLite.pm
diff --git
a/lib/SQL/Translator/Generator/DDL/SQLite.pm
b/lib/SQL/Translator/Generator/DDL/SQLite.pm
index
ec2febe
..
eaf147a
100644
(file)
--- a/
lib/SQL/Translator/Generator/DDL/SQLite.pm
+++ b/
lib/SQL/Translator/Generator/DDL/SQLite.pm
@@
-81,7
+81,11
@@
sub field {
: ( $self->field_type($field) )
),
$self->field_nullable($field),
- $self->field_default($field),
+ $self->field_default($field, {
+ NULL => 1,
+ 'now()' => 1,
+ 'CURRENT_TIMESTAMP' => 1,
+ }),
}
1;