[Phpmyadmin-devel] Parser and SET
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
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
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
Size: 232 bytes
Desc: not available
More information about the Developers