codefairy
codefairy
i tested in dev and 4.0.0.RC1, the result is ok! 
cast function Syntax is different with other general function, it was fixed
IF is a keyword, When the function nested function . the inner functionname is the keyword, it failed parsing
duplicate #1754
@AlbertTao Please describe in detail, tell me where you get value "'abcd'" ? two column value in condition are correct.the results are shown below。  
thanks , i will try it again using your code
@AlbertTao this issue was fixed at 4.0.0-RC1, i use your code testing in 4.0.0-RC1 it is ok, but in 4.0.0.M1-SNAPSHOT has a wrong value , please have a try in...
please view code in 4.0.0.RC1, this code fixed it . 
what is version of your jdbc driver? upgrade your jdbc driver and try it again
now do not support insert select