aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-18 09:08:11 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-18 09:08:11 -0200
commitf6d0eda918756bf56e2c05afcaaabda723487017 (patch)
tree35974c37f5ff4cf9dbab0728716ccaff6f41e3b5 /railties/lib/rails/application
parentc3e573db54c55c4e4ac694940c6d2f5b42b6155b (diff)
parent0bb15174558fdeaa0be1889a94347eacfc605f0b (diff)
downloadrails-f6d0eda918756bf56e2c05afcaaabda723487017.tar.gz
rails-f6d0eda918756bf56e2c05afcaaabda723487017.tar.bz2
rails-f6d0eda918756bf56e2c05afcaaabda723487017.zip
Merge branch 'uniqueness-validation-postgresql-arrays'
When setting an array column (or other PostgreSQL-specific data type) to be validated for uniqueness, the resulting SQL query is generated with syntax errors, like this: SELECT 1 AS one FROM "postgresql_arrays" WHERE "postgresql_arrays"."nicknames" = '["john", "johnny"]' LIMIT 1 This happens because Ruby Arrays must be type-casted to their PostgreSQL equivalent. This small patch fixes this issue, calling the adapter's type_cast method. Closes #8077
Diffstat (limited to 'railties/lib/rails/application')
0 files changed, 0 insertions, 0 deletions