projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fix operator precedence
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
DBI
/
SQLite.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
index
f77dc4c
..
57b5202
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
@@
-82,7
+82,7
@@
sub _columns_info_for {
}
while (my ($col, $info) = each %$result) {
- if (eval { ${ $info->{default_value} } eq 'CURRENT_TIMESTAMP' }) {
+ if ((eval { ${ $info->{default_value} } }||'') eq 'CURRENT_TIMESTAMP') {
${ $info->{default_value} } = 'current_timestamp';
}
}