diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-02-09 19:41:32 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-02-09 19:41:32 +0000 |
commit | d424674f1b95c958adb9e7235218135793c1a71f (patch) | |
tree | 8571ea55c9aab2c8a35d95d1d9878b3ff70dc407 /activerecord | |
parent | b3065a51a927ded6b22835837598e92df606eaed (diff) | |
download | rails-d424674f1b95c958adb9e7235218135793c1a71f.tar.gz rails-d424674f1b95c958adb9e7235218135793c1a71f.tar.bz2 rails-d424674f1b95c958adb9e7235218135793c1a71f.zip |
SQL Server cannot sort on type text. This causes three errors in the activerecord test suite, where tests sort on the comments.body or posts.body columns. This patch changes these columns from text to varchar(4096), allowing these tests to proceed (and pass). All activerecord tests now pass under sqlserver. References #3581. [Tom Ward]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3559 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/sqlserver.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/fixtures/db_definitions/sqlserver.sql b/activerecord/test/fixtures/db_definitions/sqlserver.sql index 15a0d5fd76..81399b7d26 100644 --- a/activerecord/test/fixtures/db_definitions/sqlserver.sql +++ b/activerecord/test/fixtures/db_definitions/sqlserver.sql @@ -134,14 +134,14 @@ CREATE TABLE posts ( author_id int default NULL, title varchar(255) default NULL, type varchar(255) default NULL, - body text default NULL + body varchar(4096) default NULL ); CREATE TABLE comments ( id int NOT NULL IDENTITY(1, 1) PRIMARY KEY, post_id int default NULL, type varchar(255) default NULL, - body text default NULL + body varchar(4096) default NULL ); CREATE TABLE authors ( |