diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-08 18:19:24 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-11 10:10:01 -0700 |
commit | 58259bbf29b55571da7708607463e61a9b69565d (patch) | |
tree | d85a1ed0f83884f241d9f3c0e8b8c50e9fe3fc23 /activerecord/lib | |
parent | b1ba04b32be25596d957a301553dd03c97588e14 (diff) | |
download | rails-58259bbf29b55571da7708607463e61a9b69565d.tar.gz rails-58259bbf29b55571da7708607463e61a9b69565d.tar.bz2 rails-58259bbf29b55571da7708607463e61a9b69565d.zip |
adding exec_insert for postgresql
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 08329b33ed..a0be143c8e 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -554,6 +554,10 @@ module ActiveRecord end end + def exec_insert(sql, name, binds) + exec_query(sql, name, binds) + end + # Executes an UPDATE query and returns the number of affected tuples. def update_sql(sql, name = nil) super.cmd_tuples |