Skip to content

Commit 9417a60

Browse files
committed
修正orderRaw方法
1 parent 0afab2a commit 9417a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/think/db/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ public function orderRaw($field, $bind = [])
18951895
if ($bind) {
18961896
foreach ($bind as $key => $value) {
18971897
if (!is_numeric($key)) {
1898-
$where = str_replace(':' . $key, '?', $where);
1898+
$field = str_replace(':' . $key, '?', $field);
18991899
}
19001900
}
19011901

0 commit comments

Comments
 (0)