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:
@ -419,8 +419,13 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){
|
|||||||
}
|
}
|
||||||
case CC_BANG: {
|
case CC_BANG: {
|
||||||
if( z[1]!='=' ){
|
if( z[1]!='=' ){
|
||||||
|
#ifdef MAXSCALE
|
||||||
|
*tokenType = TK_NOT;
|
||||||
|
return 1;
|
||||||
|
#else
|
||||||
*tokenType = TK_ILLEGAL;
|
*tokenType = TK_ILLEGAL;
|
||||||
return 2;
|
return 2;
|
||||||
|
#endif
|
||||||
}else{
|
}else{
|
||||||
*tokenType = TK_NE;
|
*tokenType = TK_NE;
|
||||||
return 2;
|
return 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user