yesidu opened a new issue #4680: count(distinct col) renturn null
URL: https://github.com/apache/incubator-shardingsphere/issues/4680
 
 
   mybatis:int getMsgDay(@Param("account_uid") String account_uid);
   SQL:SELECT COUNT(DISTINCT DATE_FORMAT(create_time,'%Y%m%d')) as count FROM 
table_name
   WHERE account_uid = #{account_uid}
   
   if there is no data, then return null, it case an exection:
   org.apache.ibatis.binding.BindingException: Mapper method 'com.*.getMsgDay 
attempted to return null from a method with a primitive return type (int).

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to