Open bugsoff opened 1 year ago
The same error:
SELECT * FROM items WHERE MATCH ('@* asd @type type1');
OK
SELECT * FROM items WHERE MATCH ('@* as\\@ @type type1');
OK
SELECT * FROM items WHERE MATCH ('@* \\@ @type type1');
ERROR 1064 (42000): index items: syntax error, unexpected TOK_FIELDLIMIT near ' \@ @type type1'
Getting a syntax error in some cases, if an escaped character is inside brackets:
SELECT * FROM items WHERE MATCH ('(\\q)');
OKSELECT * FROM items WHERE MATCH ('\\@');
OKSELECT * FROM items WHERE MATCH ('(\\@)');
ERROR 1064 (42000): index items: syntax error, unexpected ')' near '\@)'SELECT * FROM items WHERE MATCH ('(\\@a)');
OKSELECT * FROM items WHERE MATCH ('(a\\@)');
OKSELECT * FROM items WHERE MATCH ('(qwe) (asd)');
OKSELECT * FROM items WHERE MATCH ('(qwe) (\\@a)');
OKSELECT * FROM items WHERE MATCH ('(qwe) (\\@)');
ERROR 1064 (42000): index items: syntax error, unexpected ')' near '\@)'SELECT * FROM items WHERE MATCH ('(qwe) (a\\@)');
OKManticore 6.0.4 1a3a4ea82@230314