Skip to content

Commit

Permalink
Make insert_conflict plugin disable prepared statements correctly on …
Browse files Browse the repository at this point in the history
…PostgreSQL
  • Loading branch information
jeremyevans committed Jul 31, 2019
1 parent f979e23 commit 779a9ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/plugins/insert_conflict.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def _insert_dataset
# Disable the use of prepared insert statements, as they are not compatible
# with this plugin.
def use_prepared_statements_for?(type)
return false if type == :insert
return false if type == :insert || type == :insert_select
super if defined?(super)
end
end
Expand Down

0 comments on commit 779a9ab

Please sign in to comment.