[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-898) OracleDialect UTF8 varchar2

Steve Ebersole (JIRA) noreply at atlassian.com
Mon Mar 21 13:00:37 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-898.
------------------------------


Closing stale resolved issues

> OracleDialect UTF8 varchar2
> ---------------------------
>
>                 Key: HHH-898
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-898
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.0.5
>            Reporter: Andrey Grebnev
>            Assignee: Gavin King
>             Fix For: 3.1 rc 1
>
>
> By default Oracle interprets varchar2($l) as varchar2($l byte) It means that the length of string is 255 bytes. When I use ASCII symbols it is acceptably.
> But when I store UTF8 strings the length is really shorter. But most of all DBMS implies the length in chars not in bytes.
> I propose to change the line
>         registerColumnType( Types.VARCHAR, 4000, "varchar2($l)" );
> to
>         registerColumnType( Types.VARCHAR, 4000, "varchar2($l char)" );
> in order to have length of strings in chars by default.

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