[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-6779) ByteType mapped to tinyint, but on sybase/ms sql server, tinyint is unsigned int

Strong Liu (JIRA) noreply at atlassian.com
Thu Nov 3 07:07:20 EDT 2011


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

Strong Liu resolved HHH-6779.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 4.0.0.next

> ByteType mapped to tinyint, but on sybase/ms sql server, tinyint is unsigned int
> --------------------------------------------------------------------------------
>
>                 Key: HHH-6779
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6779
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.6.8, 4.0.0.CR5
>         Environment: sybase, sql server
>            Reporter: Strong Liu
>            Assignee: Strong Liu
>             Fix For: 4.0.0.next
>
>
> ByteType maps tinyint and byte
> which byte on java is [-128,127]
> but on sybase / sql server, the tinyint scope is [0-128)
> this causes org.hibernate.test.typedescriptor.ByteTest fail, stace trace is same as HHH-3679
> change the mapping of tinyint to number(3,0) in org.hibernate.dialect.AbstractTransactSQLDialect would fix this issue

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list