mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix #1864 support table alias if provided in all types of queries
This commit is contained in:
parent
0a14aaa3ba
commit
72132b2e74
1 changed files with 1 additions and 1 deletions
|
|
@ -1046,7 +1046,7 @@ class DB
|
|||
}
|
||||
else
|
||||
{
|
||||
return sprintf('`%s%s`', $this->_prefix, $m[1]);
|
||||
return isset($m[2]) ? sprintf('`%s%s` AS `%s`', $this->_prefix, $m[1], $m[2]) : sprintf('`%s%s`', $this->_prefix, $m[1]);
|
||||
}
|
||||
}, trim($str));
|
||||
}, explode(',', $m[2]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue