aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-10 18:12:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-11 10:10:01 -0700
commit8a11799a474d6cc1dc599e8823ce5bbb012944e7 (patch)
treef05060fc4cbfb07f3e8594da6a680d79b2e8e795
parent58259bbf29b55571da7708607463e61a9b69565d (diff)
downloadrails-8a11799a474d6cc1dc599e8823ce5bbb012944e7.tar.gz
rails-8a11799a474d6cc1dc599e8823ce5bbb012944e7.tar.bz2
rails-8a11799a474d6cc1dc599e8823ce5bbb012944e7.zip
make sqlite insert_sql more consistent with other adapters
-rw-r--r--activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
index 5c4d76be98..8ef286b473 100644
--- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -192,7 +192,8 @@ module ActiveRecord
end
def insert_sql(sql, name = nil, pk = nil, id_value = nil, sequence_name = nil) #:nodoc:
- super || @connection.last_insert_row_id
+ super
+ id_value || @connection.last_insert_row_id
end
alias :create :insert_sql