Skip to content

Commit

Permalink
disable prepared statements for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
jbender committed Feb 20, 2019
1 parent 39bb90e commit 294f56b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 294f56b

Please sign in to comment.