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

Sergiu Dumitriu (JIRA) noreply at atlassian.com
Sat Jun 5 12:17:35 EDT 2010


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

Sergiu Dumitriu commented on HHH-4539:
--------------------------------------

Well, this is what Hibernate uses to automatically create the tables based on the mapping, and the mapping only specifies a "string" property.

> 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