Skip to content

Commit 94f911a

Browse files
author
Drew Repasky
committed
handle lowercase "on update"
1 parent 3466970 commit 94f911a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql2sqlite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ aInc == 1 && /PRIMARY KEY|primary key/ { next }
183183
# BEGIN
184184
# UPDATE Package SET LastUpdate = CURRENT_TIMESTAMP WHERE ActionId = old.ActionId;
185185
# END
186-
gsub( /ON UPDATE (CURRENT_TIMESTAMP|current_timestamp)(\(\))?/, "" )
186+
gsub( /(ON|on) (UPDATE|update) (CURRENT_TIMESTAMP|current_timestamp)(\(\))?/, "" )
187187
gsub( /(DEFAULT|default) (CURRENT_TIMESTAMP|current_timestamp)(\(\))?/, "DEFAULT current_timestamp")
188188
gsub( /(COLLATE|collate) [^ ]+ /, "" )
189189
gsub( /(ENUM|enum)[^)]+\)/, "text " )

0 commit comments

Comments
 (0)