[Phpmyadmin-devel] SQL Parser Status + Update

Robin Johnson robbat2 at fermi.orbis-terrarum.net
Tue Aug 6 22:28:02 CEST 2002


Greetings,

I'm busy revamping the BUG() code in the SQL Parser, including making
things more PHP3 compatible, and putting the strings into the lang/* files
instead of inside the main sqlparser, so they they can be translated.

There is one major functionality change. The existing -rc4 and CVS code
did a die() call on a failure of the parser, I did that for the moment to
strongly encourage bug reports. I've got them fixed now, so the behaviour
is changing just to printing out the error message from the parser system,
and carrying on doing whatever else was being done.

At the moment, the BUG() code has been abstracted to PMA_SQP_BUG() in the
SQLParser library, but in 2.3.1 or otherwise soonish, PMA will gain a
proper BUG() function.

My PMA_SQP_BUG() presently includes:
Error Message
CVS $Id$ of sqlparser
MySQL version
User OS/Browser/BrowserVersion
PMA version
PMA version/OS
SQL query

Do you have any other suggestions of things that might be handy to have in
tracking down bugs?

There is also PMA_SQP_throwError() for when you want to inform the user of
a possible error on their part, that is not an error with our code.

-- 
Robin Hugh Johnson
E-Mail     : robbat2 at orbis-terrarum.net
Home Page  : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639






More information about the Developers mailing list