Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6891

Show
Ignore:
Timestamp:
05/29/07 08:06:35 (1 year ago)
Author:
bitsweat
Message:

Typo in PostgreSQL change_column quoting. References #8466.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

    r6889 r6891  
    346346      def change_column(table_name, column_name, type, options = {}) #:nodoc: 
    347347        begin 
    348           execute "ALTER TABLE #{table_name} ALTER COLUMN #{quoted_column_name} TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}" 
     348          execute "ALTER TABLE #{table_name} ALTER COLUMN #{quote_column_name(column_name)} TYPE #{type_to_sql(type, options[:limit], options[:precision], options[:scale])}" 
    349349        rescue ActiveRecord::StatementInvalid 
    350350          # This is PG7, so we use a more arcane way of doing it.