mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Support "if" in <group> inside <groups> #2595
This commit is contained in:
parent
386f93fc6c
commit
51762315de
4 changed files with 19 additions and 2 deletions
|
|
@ -175,9 +175,10 @@ class DBQueryParser extends BaseParser
|
|||
foreach ($xml->groups->children() as $tag)
|
||||
{
|
||||
$name = $tag->getName();
|
||||
$ifvar = trim($tag['if'] ?? '') ?: null;
|
||||
if ($name === 'group')
|
||||
{
|
||||
$query->groupby->columns[] = trim($tag['column'] ?? '');
|
||||
$query->groupby->columns[] = [trim($tag['column'] ?? ''), $ifvar];
|
||||
}
|
||||
elseif ($name === 'having')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue