[hibernate-issues] [Hibernate-JIRA] Commented: (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:03:35 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44227#comment-44227 ]
Strong Liu commented on HHH-6779:
---------------------------------
okay, smallint takes 2 byte but numeric(3,0) takes 5 bytes, so i think smallint win
> 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
>
> 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