[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3326) Temporary tables created in SQLServer use the collation for tempdb, not the application database
David Good (JIRA)
noreply at atlassian.com
Tue Jun 3 09:52:32 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30317 ]
David Good commented on HHH-3326:
---------------------------------
The older versions of the attachments should disregarded - they will cause a failure if any of the temporary table's columns is not of the *char variety.
> Temporary tables created in SQLServer use the collation for tempdb, not the application database
> ------------------------------------------------------------------------------------------------
>
> Key: HHH-3326
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3326
> Project: Hibernate3
> Issue Type: Patch
> Affects Versions: 3.2.4.sp1
> Environment: SQLServer (All versions)
> Reporter: David Good
> Attachments: Dialect.java, Dialect.java, SQLServerDialect.java, SQLServerDialect.java, Table.java, Table.java
>
>
> The use of temporary tables for updates in SQLServer will fail if tempdb uses a different collation to the application db. Specifically, comparisons between the primary table columns and the temporary table columns fail.
> It is unclear to me under what circumstances a temporary table is created, so I'm afraid no test case is attached. I do however attach modified versions of the following classes:
> org.hibernate.mapping.Table
> org.hibernate.dialect.Dialect
> org.hibernate.dialect.SQLServerDialect
>
> These resolve the issue, but the solution may not be the most optimal possible, as it involves intervention in a specific position (between the datatype declaration and any nullability clause)
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list