diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-09 17:50:11 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-09 17:51:26 -0200 |
commit | df0edafac9eb47cd971970a9e7b13a3eaddf214e (patch) | |
tree | 3e312c7f789057c75ad8ee627b5e316e86ab2a5f /activerecord/lib | |
parent | aba688ed5c3d31cc6337a2c772ea30853fe89a90 (diff) | |
download | rails-df0edafac9eb47cd971970a9e7b13a3eaddf214e.tar.gz rails-df0edafac9eb47cd971970a9e7b13a3eaddf214e.tar.bz2 rails-df0edafac9eb47cd971970a9e7b13a3eaddf214e.zip |
Document the bind return
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb index 4ee9889dad..496f33376a 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb @@ -112,6 +112,9 @@ module ActiveRecord end when String if 'bytea' == column.sql_type + # Return a bind param hash with format as binary. + # See http://deveiate.org/code/pg/PGconn.html#method-i-exec_prepared-doc + # for more information { value: value, format: 1 } else super(value, column) |