Hi!
It is a bug in the parser that it does not accept ... IN SHARE MODE
immediately after a WHERE clause. I think yacc is not very sophisticated
in lookahead of symbols when it is trying to parse a statement, and may
confuse IN SHARE MODE to WHERE colA IN ().
We will fix the parser, but mean
3.23.37:
SELECT * FROM table1 WHERE colA=1 IN SHARE MODE
does not work (ERROR 1064: You have an error in
your SQL syntax near 'share mode' at line 1).
On the other side
SELECT * FROM table1 IN SHARE MODE
does work, i.e. the syntax error only happens if
I specify a WHERE clause or an OR