Fix error on where_in with string values.
This commit is contained in:
parent
4c4fe6f1f7
commit
afb4c914a1
@ -407,9 +407,9 @@ class ModelMySQL {
|
||||
}
|
||||
|
||||
if ($in)
|
||||
static::$querySelect['where'] = "$column IN (".join(', ',$arr).")";
|
||||
static::$querySelect['where'] = "$column IN ('".join('\', \'',$arr)."')";
|
||||
else
|
||||
static::$querySelect['where'] = "$column NOT IN (".join(', ',$arr).")";
|
||||
static::$querySelect['where'] = "$column NOT IN ('".join('\', \'',$arr)."')";
|
||||
|
||||
return new static();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user