trojanliu commented on issue #2125: not support count if,  database will be the 
default , not the true
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2125#issuecomment-480685064
 
 
   
![image](https://user-images.githubusercontent.com/8016811/55699691-92256400-59fe-11e9-9560-43a275d29a20.png)
   
![image](https://user-images.githubusercontent.com/8016811/55699767-f6e0be80-59fe-11e9-833b-6303688c4d56.png)
   
   IN VERSION 3.1.0 
   
   if sql is 'SELECT count(IF(sex = 1 , TRUE , NULL)) AS maleCount FROM 
tx_user;'
   
   it will parsing ends up before `if`.  
   AND tablename is not parsing, so it use the default database;

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