mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Fix #18539: Fix "driver does not support quoting" when using the driver pdo_odbc
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user