Skip to content

Commit 78175ec

Browse files
committed
Support sqlite columns that have string manipulation as a default
1 parent ad5a5a9 commit 78175ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arjdbc/sqlite3/adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def extract_default_function(default_value, default)
469469
end
470470

471471
def has_default_function?(default_value, default)
472-
!default_value && %r{\w+\(.*\)|CURRENT_TIME|CURRENT_DATE|CURRENT_TIMESTAMP}.match?(default)
472+
!default_value && %r{\w+\(.*\)|CURRENT_TIME|CURRENT_DATE|CURRENT_TIMESTAMP|\|\|}.match?(default)
473473
end
474474

475475
# See: https://www.sqlite.org/lang_altertable.html

0 commit comments

Comments
 (0)