Browse files

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
  • Loading branch information...
1 parent b3065a5 commit d424674f1b95c958adb9e7235218135793c1a71f @jeremy jeremy committed Feb 9, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/fixtures/db_definitions/sqlserver.sql
View
4 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 (

0 comments on commit d424674

Please sign in to comment.