mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix subquery detection in tables and columns section of XML
This commit is contained in:
parent
10302ea44e
commit
bb94e91fe0
1 changed files with 2 additions and 2 deletions
|
|
@ -54,7 +54,7 @@ class DBQueryParser extends BaseParser
|
|||
$query->pipe = strtoupper($attribs['pipe']) ?: 'AND';
|
||||
|
||||
// Load tables.
|
||||
foreach ($xml->tables->table ?: [] as $tag)
|
||||
foreach ($xml->tables->children() ?: [] as $tag)
|
||||
{
|
||||
if (trim($tag['query']) === 'true')
|
||||
{
|
||||
|
|
@ -81,7 +81,7 @@ class DBQueryParser extends BaseParser
|
|||
}
|
||||
|
||||
// Load columns.
|
||||
foreach ($xml->columns->column ?: [] as $tag)
|
||||
foreach ($xml->columns->children() ?: [] as $tag)
|
||||
{
|
||||
if ($tag->getName() === 'query')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue