From 294f56b358aa7217bd8c13982861035e43b9562c Mon Sep 17 00:00:00 2001 From: Jonathan Bender Date: Wed, 20 Feb 2019 11:06:13 -0800 Subject: [PATCH] disable prepared statements for postgres --- lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb b/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb index eee71318..096cea91 100644 --- a/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb +++ b/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb @@ -17,6 +17,13 @@ def arel_visitor Arel::Visitors::PostgreSQL.new(self) end + # Explicitly disable prepared statements for now, as it's always erroring + # out with: + # ODBC::Error: INTERN (0) [RubyODBC]Too much parameters + def prepared_statements + false + end + # Filter for ODBCAdapter#tables # Omits table from #tables if table_filter returns true def table_filtered?(schema_name, table_type)