You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/09/12 08:23:16 UTC

[GitHub] [incubator-shardingsphere] KomachiSion opened a new issue #3027: Return Wrong type for tinyint and smallint column

KomachiSion opened a new issue #3027: Return Wrong type for tinyint and smallint column
URL: https://github.com/apache/incubator-shardingsphere/issues/3027
 
 
   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   4.0.0-RC2
   
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   
   Sharding-JDBC
   
   ### Expected behavior
   
   Get `tinyint` type column value from results is `integer` type for MySQL
   
   ### Actual behavior
   
   Get `tinyint` type column value from results is `byte` type for MySQL
   
   ### Reason analyze (If you can)
   
   ShardingSphere will getByte in `QueryResultUtil` for tinyint type column,
   But the tinyint type get from native JDBC getObject is `Integet` type.
   
   Same as `small int` type. I also test `small int` type for DB2, PostgreSQL, all return `Integet` type from native JDBC getObject.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services