作者 邓超

x

@@ -152,7 +152,9 @@ function dbWhere(array $where, string $ar = 'and'):string{ @@ -152,7 +152,9 @@ function dbWhere(array $where, string $ar = 'and'):string{
152 foreach ($where as $f=>$v){ 152 foreach ($where as $f=>$v){
153 153
154 list($f,$t) = explode('.',$f.'.'); 154 list($f,$t) = explode('.',$f.'.');
  155 + if($f!=='_'){
155 $f = '`'.str_replace('|','`.`',$f).'`'; 156 $f = '`'.str_replace('|','`.`',$f).'`';
  157 + }
156 158
157 if(is_array($v)){ 159 if(is_array($v)){
158 if($f ==='_'){ 160 if($f ==='_'){