mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进一处异常错误
This commit is contained in:
@@ -2569,7 +2569,7 @@ class Query
|
|||||||
* @param string $column 分批处理的字段名
|
* @param string $column 分批处理的字段名
|
||||||
* @param string $order 排序规则
|
* @param string $order 排序规则
|
||||||
* @return boolean
|
* @return boolean
|
||||||
* @throws DbException
|
* @throws \LogicException
|
||||||
*/
|
*/
|
||||||
public function chunk($count, $callback, $column = null, $order = 'asc')
|
public function chunk($count, $callback, $column = null, $order = 'asc')
|
||||||
{
|
{
|
||||||
@@ -2585,7 +2585,7 @@ class Query
|
|||||||
}
|
}
|
||||||
if (isset($options['order'])) {
|
if (isset($options['order'])) {
|
||||||
if (App::$debug) {
|
if (App::$debug) {
|
||||||
throw new DbException('chunk not support call order');
|
throw new \LogicException('chunk not support call order');
|
||||||
}
|
}
|
||||||
unset($options['order']);
|
unset($options['order']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user