Monty,

a parser bug.

Regards,

Heikki
........................
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 meanwhile you can use the following workaround:

SELECT * FROM table1 WHERE colA=1 LIMIT 10000000 IN SHARE MODE;

The LIMIT clause helps yacc to find the right parsing for your statement :).

Regards,

Heikki

............................................
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 ORDER clause or 
anything else between FROM table1 and IN SHARE 
MODE.

table1 is a InnoDB table consisting of two 
integer columns colA and colB.

Is the syntax error by design or is it an implementation problem?

Thanks,

    Michael

http://www.kofler.cc/mysql




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to