Skip to content

Commit 83586f4

Browse files
authored
Do not use bool alias (localytics#21)
1 parent 1c59af4 commit 83586f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/odbc_adapter/adapters/postgresql_odbc_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Adapters
33
# Overrides specific to PostgreSQL. Mostly taken from
44
# ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
55
class PostgreSQLODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter
6-
BOOLEAN_TYPE = 'bool'.freeze
6+
BOOLEAN_TYPE = 'boolean'.freeze
77
PRIMARY_KEY = 'SERIAL PRIMARY KEY'.freeze
88
VARIANT_TYPE = 'VARIANT'.freeze
99
DATE_TYPE = 'DATE'.freeze
@@ -13,7 +13,7 @@ class PostgreSQLODBCAdapter < ActiveRecord::ConnectionAdapters::ODBCAdapter
1313

1414
# Override to handle booleans appropriately
1515
def native_database_types
16-
@native_database_types ||= super.merge(boolean: { name: 'bool' })
16+
@native_database_types ||= super.merge(boolean: { name: 'boolean' })
1717
end
1818

1919
def arel_visitor

0 commit comments

Comments
 (0)