diff --git a/lib/c_tokenizer.c b/lib/c_tokenizer.c index 30eaa942ad..20b3d6078e 100644 --- a/lib/c_tokenizer.c +++ b/lib/c_tokenizer.c @@ -272,6 +272,33 @@ char *mysql_query_digest_and_first_comment(char *s, int _len, char **first_comme i++; continue; } + if (*s == 'n' || *s == 'N') { // we search for NULL , #2171 + if (i && is_token_char(prev_char)) { + if (len>=4) { + if (i