mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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
|
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));
|
}, trim($str));
|
||||||
}, explode(',', $m[2]));
|
}, explode(',', $m[2]));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue