Fix error on where_in with string values.

This commit is contained in:
kj 2022-07-10 12:10:01 -04:00
parent 4c4fe6f1f7
commit afb4c914a1
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}