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

Strong Liu (JIRA) noreply at atlassian.com
Thu Oct 27 10:03:21 EDT 2011


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
         Environment: sybase, sql server
            Reporter: Strong Liu


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