diff --git a/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb b/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb index 05fa17e0..2cb76617 100644 --- a/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb +++ b/lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb @@ -3,7 +3,7 @@ module Adapters # Overrides specific to PostgreSQL. Mostly taken from # ActiveRecord::ConnectionAdapters::PostgreSQLAdapter class PostgreSQLODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter - BOOLEAN_TYPE = 'bool'.freeze + BOOLEAN_TYPE = 'boolean'.freeze PRIMARY_KEY = 'SERIAL PRIMARY KEY'.freeze VARIANT_TYPE = 'VARIANT'.freeze DATE_TYPE = 'DATE'.freeze @@ -13,7 +13,7 @@ class PostgreSQLODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter # Override to handle booleans appropriately def native_database_types - @native_database_types ||= super.merge(boolean: { name: 'bool' }) + @native_database_types ||= super.merge(boolean: { name: 'boolean' }) end def arel_visitor