diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-29 08:06:35 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-29 08:06:35 +0000 |
commit | 690d6e204a9979a571b8aa9d3f331ff65ff30f56 (patch) | |
tree | 9da3656f280a9eb9312581ad85b5012aea80d1a0 /activerecord/lib/active_record | |
parent | c2d14836a19c16d40475a55e6057d48545f47198 (diff) | |
download | rails-690d6e204a9979a571b8aa9d3f331ff65ff30f56.tar.gz rails-690d6e204a9979a571b8aa9d3f331ff65ff30f56.tar.bz2 rails-690d6e204a9979a571b8aa9d3f331ff65ff30f56.zip |
Typo in PostgreSQL change_column quoting. References #8466.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index d6e0b3d26d..97c537132b 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -345,7 +345,7 @@ module ActiveRecord def change_column(table_name, column_name, type, options = {}) #:nodoc: begin - execute "ALTER TABLE #{table_name} ALTER COLUMN #{quoted_column_name} TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}" + execute "ALTER TABLE #{table_name} ALTER COLUMN #{quote_column_name(column_name)} TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}" rescue ActiveRecord::StatementInvalid # This is PG7, so we use a more arcane way of doing it. begin_db_transaction |