Hi guys,
In this part of code:
|
foreach ($select as $clause) { |
I've added this precaution:
#search to see if the expression matches an alias
if (is_array($select)) {
foreach ($select as $clause) {
if (!$clause['alias']) {
continue;
}
if ($clause['alias']['name'] === $parseInfo['expr']) {
$parseInfo['type'] = 'alias';
}
}
}
Because, when i don't have a select clause in my sql request, i had this warning:
Warning: Invalid argument supplied for foreach() ... on line 1321
Thx
Hi guys,
In this part of code:
pseudo/src/php-sql-parser.php
Line 1321 in 77282ca
I've added this precaution:
Because, when i don't have a select clause in my sql request, i had this warning:
Warning: Invalid argument supplied for foreach() ... on line 1321Thx