正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -189,7 +189,7 @@ function dbWhere(array $where, string $ar = 'and'):string{ | @@ -189,7 +189,7 @@ function dbWhere(array $where, string $ar = 'and'):string{ | ||
189 | 189 | ||
190 | }elseif (count($v) > 1){ | 190 | }elseif (count($v) > 1){ |
191 | if($t == 'between'){ | 191 | if($t == 'between'){ |
192 | - $sql[] = "{$f} between '{$v[0]}' and '{$v[1]}'"; | 192 | + $sql[] = "{$f} between {$v[0]} and {$v[1]}"; |
193 | }else | 193 | }else |
194 | $sql[] = "{$f} ".($t=='notin'?'not in':($t?:'in'))." (".implode(',',$v).")"; | 194 | $sql[] = "{$f} ".($t=='notin'?'not in':($t?:'in'))." (".implode(',',$v).")"; |
195 | } | 195 | } |
-
请 注册 或 登录 后发表评论