diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-12 13:57:05 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-10-26 13:44:07 -0700 |
commit | 497218d5db8f7c3887c3861bdbe318331b77fed7 (patch) | |
tree | 08de5ec8b12ec9eeb8172f1361ecd80a67fdb600 /activerecord/lib | |
parent | ef0cf143a939772edd89f90b0a095c8eb65139d2 (diff) | |
download | rails-497218d5db8f7c3887c3861bdbe318331b77fed7.tar.gz rails-497218d5db8f7c3887c3861bdbe318331b77fed7.tar.bz2 rails-497218d5db8f7c3887c3861bdbe318331b77fed7.zip |
adding bind value substitution
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index d8c92d0ad3..bcbef526bd 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -97,6 +97,12 @@ module ActiveRecord quote_column_name(name) end + # Returns a bind substitution value given a +column+ and list of current + # +bind_values+ + def substitute_for(column, bind_values) + Arel.sql '?' + end + # REFERENTIAL INTEGRITY ==================================== # Override to turn off referential integrity while executing <tt>&block</tt>. |