[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4539) Make UPPER and LOWER work on MS SQL Server text and ntext columns

j nadler (JIRA) noreply at atlassian.com
Sat Jun 5 11:07:35 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37334#action_37334 ] 

j nadler commented on HHH-4539:
-------------------------------

text and ntext are deprecated in SQL Server.   Better to migrate to varchar(max) and nvarchar(max), which will solve your problem I believe.

> Make UPPER and LOWER work on MS SQL Server text and ntext columns
> -----------------------------------------------------------------
>
>                 Key: HHH-4539
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4539
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: query-sql
>    Affects Versions: 3.3.2
>         Environment: MS SQL Server
>            Reporter: Sergiu Dumitriu
>
> Trying to use UPPER or LOWER on a text column results in:
> ERROR util.JDBCExceptionReporter - Argument data type text is invalid for argument 1 of upper function.
> http://databases.aspfaq.com/database/why-do-i-get-argument-data-type-text-is-invalid-for-argument.html suggests a workaround, which I think should be automatically used by Hibernate, so that the HQL query can work with other dialects.

-- 
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