projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
change CURRENT_TIMESTAMP to current_timestamp
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
DBI
/
MSSQL.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm
b/lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm
index
7d65c44
..
d2847c3
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm
@@
-281,7
+281,7
@@
wHERE lower(table_name) = @{[ $dbh->quote(lc $table) ]} AND lower(column_name) =
$default =~ /^\d/ ? $default : \$default;
if (eval { lc ${ $info->{default_value} } }||'' eq 'getdate()') {
- ${ $info->{default_value} } = 'CURRENT_TIMESTAMP';
+ ${ $info->{default_value} } = 'current_timestamp';
}
}
}