From 9870396ed13b720980957e848e4ce65582fd0d0b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 17 Jul 2005 09:52:00 +0000 Subject: Fixed incompatibility in DB2 adapter with the new limit/offset approach #1718 [Maik Schmidt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/base_test.rb | 2 +- activerecord/test/fixtures/db_definitions/db2.drop.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord/test') diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 8b316df190..d91a719f72 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -347,7 +347,7 @@ class BasicsTest < Test::Unit::TestCase end def test_update_many - topic_data = { "1" => { "content" => "1 updated" }, "2" => { "content" => "2 updated" } } + topic_data = { 1 => { "content" => "1 updated" }, 2 => { "content" => "2 updated" } } updated = Topic.update(topic_data.keys, topic_data.values) assert_equal 2, updated.size diff --git a/activerecord/test/fixtures/db_definitions/db2.drop.sql b/activerecord/test/fixtures/db_definitions/db2.drop.sql index 844bf3e2f8..65bd11e7fa 100644 --- a/activerecord/test/fixtures/db_definitions/db2.drop.sql +++ b/activerecord/test/fixtures/db_definitions/db2.drop.sql @@ -21,4 +21,6 @@ DROP TABLE authors; DROP TABLE tasks; DROP TABLE categories; DROP TABLE categories_posts; +DROP TABLE fk_test_has_pk; +DROP TABLE fk_test_has_fk; -- cgit v1.2.3