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

Changeset 4605

Show
Ignore:
Timestamp:
07/10/06 19:54:21 (2 years ago)
Author:
bitsweat
Message:

PostgreSQL: return array fields as strings. Closes #4664.

Files:

Legend:

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

    r4601 r4605  
    11*SVN* 
     2 
     3* PostgreSQL: return array fields as strings. #4664 [Robby Russell] 
    24 
    35* SQLServer: added tests to ensure all database statements are closed, refactored identity_insert management code to use blocks, removed update/delete rowcount code out of execute and into update/delete, changed insert to go through execute method, removed unused quoting methods, disabled pessimistic locking tests as feature is currently unsupported, fixed RakeFile to load sqlserver specific tests whether running in ado or odbc mode, fixed support for recently added decimal types, added support for limits on integer types. #5670 [Tom Ward] 
  • trunk/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb

    r4596 r4605  
    516516          # Match the beginning of field_type since it may have a size constraint on the end. 
    517517          case field_type 
     518            # PostgreSQL array data types. 
     519            when /\[\]$/i  then 'string' 
    518520            when /^timestamp/i    then 'datetime' 
    519521            when /^real|^money/i  then 'float'