[Phpmyadmin-devel] Parser and SET

Robin Johnson robbat2 at orbis-terrarum.net
Fri Oct 11 14:59:04 CEST 2002


On Fri, Oct 11, 2002 at 10:28:34AM -0400, Marc Delisle wrote:
> in a query like
> 
> UPDATE mytable set myfield = 1
> 
> the parser thinks that "set" is a column type.
> 
> If I add SET to the list of reserved words, now
> the UPDATE statement colorizes ok, but in an ALTER
> TABLE with a column type of SET, the SET does not go
> orange.
I'll try see about a full solution for this later on.
The basic algorithm is that when you hit 'SET' you need to check the
next token.

If it's a '(' then it's a column type, else it's a reserved word.
There was a big batch of stuff i've been working on in the parser system
anyway. I'll see about getting some of it in soon, even if it's just
that bugfix for the moment.

-- 
Robin Hugh Johnson
E-Mail     : robbat2 at orbis-terrarum.net
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20021011/3b73c286/attachment.sig>


More information about the Developers mailing list