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

Changeset 2942

Show
Ignore:
Timestamp:
11/08/05 19:11:25 (3 years ago)
Author:
bitsweat
Message:

Correct whitespace problem in Oracle default column value parsing. Closes #2788.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r2940 r2942  
    11*SVN* 
     2 
     3* Correct whitespace problem in Oracle default column value parsing.  #2788 [rick@rickbradley.com] 
    24 
    35* Destroy associated has_and_belongs_to_many records after all before_destroy callbacks but before destroy.  This allows you to act on the habtm association as you please while preserving referential integrity.  #2065 [larrywilliams1@gmail.com, sam.kirchmeier@gmail.com, elliot@townx.org, Jeremy Kemper] 
  • trunk/activerecord/lib/active_record/connection_adapters/oci_adapter.rb

    r2935 r2942  
    332332                and col.table_name = nvl(syn.table_name, cat.table_name) 
    333333          }).map do |row| 
    334             row['data_default'].gsub!(/^'(.*)'$/, '\1') if row['data_default'] 
     334            row['data_default'].gsub!(/^'(.*)'\s*$/, '\1') if row['data_default'] 
    335335            OCIColumn.new( 
    336336              oci_downcase(row['column_name']),