aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-14 22:24:55 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-14 22:24:55 +0000
commitfb1efcaf91511285a0a656621a823a97a75975b3 (patch)
tree4b2885f60cacc7071024cfa173cee136b4cb71b8 /activerecord/test
parent415d27490f14f7ba360a0edd3d9e1211f7482c89 (diff)
downloadrails-fb1efcaf91511285a0a656621a823a97a75975b3.tar.gz
rails-fb1efcaf91511285a0a656621a823a97a75975b3.tar.bz2
rails-fb1efcaf91511285a0a656621a823a97a75975b3.zip
SQLServer: insert uses given primary key value if not nil rather than SELECT @@IDENTITY. References #2866.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3035 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/pk_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/pk_test.rb b/activerecord/test/pk_test.rb
index f9cfd6f293..839a784e4a 100644
--- a/activerecord/test/pk_test.rb
+++ b/activerecord/test/pk_test.rb
@@ -54,6 +54,7 @@ class PrimaryKeysTest < Test::Unit::TestCase
assert_equal("jdoe", subscriber.id)
subscriber.name = "John Doe"
assert_nothing_raised { subscriber.save! }
+ assert_equal("jdoe", subscriber.id)
subscriberReloaded = Subscriber.find("jdoe")
assert_equal("John Doe", subscriberReloaded.name)