Skip to content
Browse files

Don't worry about retrieving the last inserted id. [tarmo_t]

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4e7dce7 commit 6b1901da8f2db638884d3e51f84d4392775e7667 @jeremy jeremy committed Sep 17, 2007
2 activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -136,7 +136,7 @@ def reset_sequence!(table, column, sequence = nil)
# Inserts the given fixture into the table. Overriden in adapters that require
# something beyond a simple insert (eg. Oracle).
def insert_fixture(fixture, table_name)
- insert "INSERT INTO #{table_name} (#{fixture.key_list}) VALUES (#{fixture.value_list})", 'Fixture Insert'
+ execute "INSERT INTO #{table_name} (#{fixture.key_list}) VALUES (#{fixture.value_list})", 'Fixture Insert'

0 comments on commit 6b1901d

Please sign in to comment.
Something went wrong with that request. Please try again.