We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 974065c commit 291afccCopy full SHA for 291afcc
ShardingQuery.php
@@ -176,12 +176,12 @@ public function select()
176
$sql = $this->sql();
177
$data = [];
178
foreach ($range as $tableName => $item) {
179
- $sql = str_replace('{table}', $tableName, $sql);
180
- $sql = "{$sql} LIMIT {$item['limit']} OFFSET {$item['offset']}";
181
- $result = call_user_func($this->callback, $sql);
+ $tmpSql = str_replace('{table}', $tableName, $sql);
+ $tmpSql = "{$tmpSql} LIMIT {$item['limit']} OFFSET {$item['offset']}";
+ $result = call_user_func($this->callback, $tmpSql);
182
$data = array_merge($data, $result);
183
$this->trace[] = [
184
- 'sql' => $sql,
+ 'sql' => $tmpSql,
185
'rowCount' => count($result),
186
];
187
}
0 commit comments