Skip to content

Commit ece1ebb

Browse files
committed
[h2] support empty insert statement (actually used by AR 4.0)
1 parent 56f4cc4 commit ece1ebb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/arjdbc/h2/adapter.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ def type_to_sql(type, limit = nil, precision = nil, scale = nil)
148148
end
149149
end
150150

151+
def empty_insert_statement_value
152+
"VALUES ()"
153+
end
154+
151155
def tables
152156
@connection.tables(nil, h2_schema)
153157
end

0 commit comments

Comments
 (0)