作者 邓超

x

@@ -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 }