aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-12 13:32:48 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-26 13:44:07 -0700
commitef0cf143a939772edd89f90b0a095c8eb65139d2 (patch)
treeb13be02d05afc6e80e0385ade0b105d7dbc43af7 /activerecord/lib
parentc376fd488c64dd2241fa8bec18bb712105e0e1b3 (diff)
downloadrails-ef0cf143a939772edd89f90b0a095c8eb65139d2.tar.gz
rails-ef0cf143a939772edd89f90b0a095c8eb65139d2.tar.bz2
rails-ef0cf143a939772edd89f90b0a095c8eb65139d2.zip
adding the abstract method
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
index 646a78622c..cf67185b83 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -39,6 +39,12 @@ module ActiveRecord
end
undef_method :execute
+ # Executes +sql+ statement in the context of this connection using
+ # +bind_values+ as the bind substitutes. +name+ is logged along with
+ # the executed +sql+ statement.
+ def exec(sql, name = nil, binds = [])
+ end
+
# Returns the last auto-generated ID from the affected table.
def insert(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil)
insert_sql(sql, name, pk, id_value, sequence_name)