MXS-2990 Fix the problem, treat ! as not

If '!' is followed by '=' then it is NOT-EQUAL, otherwise it is
just NOT.
This commit is contained in:
Johan Wikman 2020-05-13 10:38:07 +03:00
parent 9999650bbe
commit b212117fd3

View File

@ -419,8 +419,13 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){
}
case CC_BANG: {
if( z[1]!='=' ){
#ifdef MAXSCALE
*tokenType = TK_NOT;
return 1;
#else
*tokenType = TK_ILLEGAL;
return 2;
#endif
}else{
*tokenType = TK_NE;
return 2;