
thijsdj - 2009-06-02 12:39:49
Hi,
I like your class! We use it a lot here.
I found a bug, when parsing this query:
"(select count(*) || ' : 02-06-2009, 14:25124394551987' from fooooo)"
Yes, including the brackets at the start and the end. That's the problem.
The TABLE in the parsed response is called "fooooo)".
Here's the complete result:
array(1) {
["SQL"]=>
array(3) {
["_a"]=>
int(0)
["_z"]=>
int(67)
["SELECT"]=>
array(2) {
["FROM"]=>
array(1) {
["TABLE"]=>
string(7) "fooooo)"
}
["0|*SELECT"]=>
array(3) {
["0|*AS"]=>
array(1) {
["FIELD"]=>
string(8) "count(*)"
}
["1|*AS"]=>
array(1) {
["FIELD"]=>
string(2) "||"
}
["2|*AS"]=>
array(1) {
["VAL"]=>
string(34) "' : 02-06-2009, 14:25124394551987'"
}
}
}
}
}
We wrote a small workaround, but I just wanted to let you know this is a bug.
Regards,
Thijs