[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3137?page=c...
]
Johannes Rudolph updated HHH-3137:
----------------------------------
Attachment: SQLServerFixDialect.java
As a workaround you might for now use this custom dialect(SQLServerFixDialect.java) which
at least adds the text column to the current version.
SQLServerDialect: Schemaexport generates varchar columns for
length>8000 which is not allowed in SQL Server
-----------------------------------------------------------------------------------------------------------
Key: HHH-3137
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3137
Project: Hibernate3
Issue Type: Bug
Affects Versions: 3.2.4.sp1
Environment: Microsoft SQL Server 2005
Reporter: Johannes Rudolph
Priority: Minor
Attachments: sqlserver.patch, SQLServerFixDialect.java
MS SQL Server allows varchar columns to be only a maximum of 8000 bytes long. With
length>8000 you have to use the 'text' type in SQL Server < 2005 and from
2005 on 'varchar(max)'.
Supplied a patch which fixes this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira