Business intelligence made simple
Fixed error with SQLite and prepared statements - fixes #541 and closes #542
Andrew Kanefe963b08cf0f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2c98569b..7d00e6ab 100644--- a/CHANGELOG.md+++ b/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 modeldiff --git a/lib/blazer/adapters/sql_adapter.rb b/lib/blazer/adapters/sql_adapter.rbindex 06796765..1e73047f 100644--- a/lib/blazer/adapters/sql_adapter.rb+++ b/lib/blazer/adapters/sql_adapter.rb@@ -197,7 +197,7 @@ module Blazerif 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?:numericelsif mysql? && prepared_statements?# Active Record silently ignores binds with MySQL when prepared statements are disabled