Skip to content

Commit

Permalink
Add default values to :exec_insert to conform to base ActiveRecord de…
Browse files Browse the repository at this point in the history
…finition
  • Loading branch information
leboshi committed Dec 9, 2024
1 parent 79e1f24 commit 40f13dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def execute(sql, name = nil, format: @response_format, settings: {})
end
end

def exec_insert(sql, name, _binds, _pk = nil, _sequence_name = nil, returning: nil)
def exec_insert(sql, name = nil, _binds = [], _pk = nil, _sequence_name = nil, returning: nil)
new_sql = sql.sub(/ (DEFAULT )?VALUES/, " VALUES")
with_response_format(nil) { execute(new_sql, name) }
true
Expand Down

0 comments on commit 40f13dc

Please sign in to comment.