Skip to content

Commit

Permalink
Removed unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 25, 2023
1 parent 16b06cc commit e355c15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/blazer/adapters/sql_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ def quoting

# Redshift adapter silently ignores binds
def parameter_binding
if postgresql? && (ActiveRecord::VERSION::STRING.to_f >= 6.1 || prepared_statements?)
# Active Record < 6.1 silently ignores binds with Postgres when prepared statements are disabled
if postgresql?
:numeric
elsif sqlite? && prepared_statements?
# Active Record silently ignores binds with SQLite when prepared statements are disabled
Expand Down

0 comments on commit e355c15

Please sign in to comment.