diff options
author | Arturo Pie <arturotd08@yahoo.ca> | 2012-10-13 18:30:43 -0400 |
---|---|---|
committer | Arturo Pie <arturotd08@yahoo.ca> | 2012-10-13 22:18:50 -0400 |
commit | 40475cf3649af4a6d868299b1796b36358f90917 (patch) | |
tree | d4f2cf7250eefdc6e242d02320ffeffee367c7c2 /activerecord/test/cases/adapters/postgresql/quoting_test.rb | |
parent | 54b3f417411097f7404d15355858f56ad66e8294 (diff) | |
download | rails-40475cf3649af4a6d868299b1796b36358f90917.tar.gz rails-40475cf3649af4a6d868299b1796b36358f90917.tar.bz2 rails-40475cf3649af4a6d868299b1796b36358f90917.zip |
#7914 Using a better way to get the defaults from db.
According to postgreSQL documentation:
(http://www.postgresql.org/docs/8.2/static/catalog-pg-attrdef.html)
we should not be using 'adsrc' field because this field is unaware of
outside changes that could affect the way that default values are
represented. Thus, I changed the queries to use
"pg_get_expr(adbin, adrelid)" instead of the historical "adsrc" field.
Diffstat (limited to 'activerecord/test/cases/adapters/postgresql/quoting_test.rb')
0 files changed, 0 insertions, 0 deletions