diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2014-11-19 22:16:22 +0100 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2014-12-29 21:26:35 +0100 |
commit | 969ef21d327ec3ada9c5c4b06c1ed92afa55dbec (patch) | |
tree | acfa74195b13650f0bbbf4cd6186caf01e90556e /activerecord/test/cases/callbacks_test.rb | |
parent | b67b57d47368b4b834cfe8c58d9e26f5c819c154 (diff) | |
download | rails-969ef21d327ec3ada9c5c4b06c1ed92afa55dbec.tar.gz rails-969ef21d327ec3ada9c5c4b06c1ed92afa55dbec.tar.bz2 rails-969ef21d327ec3ada9c5c4b06c1ed92afa55dbec.zip |
PostgreSQL, Fix change detection caused by wrong data for bytea unescaping.
This showed up when running BinaryTest#test_load_save with the more
restrictive input string handling of pg-0.18.0.pre20141117110243.gem .
Bytea values sent to the server are in binary format, but are
returned back as escaped text. To fulfill the assumption that
type_cast_from_database(type_cast_for_database(binary)) == binary
we unescape only, if the value was really received from the server.
Diffstat (limited to 'activerecord/test/cases/callbacks_test.rb')
0 files changed, 0 insertions, 0 deletions