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/07/25 02:00:19 UTC

[GitHub] [incubator-shardingsphere] Saisimon commented on issue #2749: ClassCastException: java.lang.Boolean cannot be cast to java.lang.Byte

Saisimon commented on issue #2749: ClassCastException: java.lang.Boolean cannot be cast to java.lang.Byte
URL: https://github.com/apache/incubator-shardingsphere/issues/2749#issuecomment-514864330
 
 
   According to [MySQL Connector/J 5.1](https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-type-conversions.html) and [MySQL Connector/J 8.0](https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-type-conversions.html) documentations
   > java.lang.Boolean if the configuration property tinyInt1isBit is set to true (the default) and the storage size is 1, or java.lang.Integer if not.
   
   Two ways can fix it.
   1.  change tinyint(1) to tinyint(2)
   2. datasource url add tinyInt1isBit=false, like jdbc:mysql://dbserver:3306/d0?tinyInt1isBit=false
   

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