Subject: | db.table syntax |
Valid queries like the following break in parsing:
SELECT * FROM foo.bar, baz
The 'foo.bar' hoses because of the ., but MySQL (at least) is fine with this syntax for multi-DB selects.
Simple fix is to change the following line in Parser::Parser():
if ($id =~ /\W/) {
to
if ($id !~ /[\w.]/) {
Doing anything more is up to you as far as splitting the DB part from the table part. I'm happy with it just not failing :-)
Cheers,
Kevin