Skip to content

Commit

Permalink
Fixed error with SQLite and prepared statements - fixes #541 and clos…
Browse files Browse the repository at this point in the history
…es #542
  • Loading branch information
ankane committed Oct 25, 2023
1 parent ac50e15 commit fe963b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
## 3.0.2 (unreleased)

- Fixed error with SQLite and prepared statements

## 3.0.1 (2023-10-08)

- Fixed error with Rails 7.1 when no user model
Expand Down
2 changes: 1 addition & 1 deletion lib/blazer/adapters/sql_adapter.rb
Expand Up @@ -197,7 +197,7 @@ 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
:numeric
elsif sqlite?
elsif sqlite? && prepared_statements?
:numeric
elsif mysql? && prepared_statements?
# Active Record silently ignores binds with MySQL when prepared statements are disabled
Expand Down

0 comments on commit fe963b0

Please sign in to comment.