aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters/postgresql/quoting_test.rb
diff options
context:
space:
mode:
authorArturo Pie <arturotd08@yahoo.ca>2012-10-13 18:30:43 -0400
committerArturo Pie <arturotd08@yahoo.ca>2012-10-13 22:18:50 -0400
commit40475cf3649af4a6d868299b1796b36358f90917 (patch)
treed4f2cf7250eefdc6e242d02320ffeffee367c7c2 /activerecord/test/cases/adapters/postgresql/quoting_test.rb
parent54b3f417411097f7404d15355858f56ad66e8294 (diff)
downloadrails-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