aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-05-12 16:39:24 +0200
committerYves Senn <yves.senn@gmail.com>2014-05-12 16:39:24 +0200
commit711af752342cdd558f5f82d407d0d56a115bb8bc (patch)
treefb9e61741921e303e6dfbc233875dcfebf382159 /activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
parent4320b77804e090ff8415dbbc79dde6c391f09c7c (diff)
downloadrails-711af752342cdd558f5f82d407d0d56a115bb8bc.tar.gz
rails-711af752342cdd558f5f82d407d0d56a115bb8bc.tar.bz2
rails-711af752342cdd558f5f82d407d0d56a115bb8bc.zip
pg, map `char` and `name` types as string. [dark-panda & Yves Senn]
Closes #10802.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/oid.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
index 14beb7bd25..b173163e41 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
@@ -409,6 +409,7 @@ This is not reliable and will be removed in the future.
register_type 'text', OID::Text.new
register_type 'varchar', OID::String.new
alias_type 'char', 'varchar'
+ alias_type 'name', 'varchar'
alias_type 'bpchar', 'varchar'
register_type 'bool', OID::Boolean.new
register_type 'bit', OID::Bit.new