Fix #18539: Fix "driver does not support quoting" when using the driver pdo_odbc

This commit is contained in:
XPOHOC
2021-03-03 10:11:00 +03:00
committed by GitHub
parent daafa44d57
commit dfef7f8365
2 changed files with 2 additions and 1 deletions

View File

@ -460,7 +460,7 @@ abstract class Schema extends BaseObject
return $str;
}
if (($value = $this->db->getSlavePdo()->quote($str)) !== false) {
if (mb_stripos($this->db->dsn, 'odbc:') === false && ($value = $this->db->getSlavePdo()->quote($str)) !== false) {
return $value;
}