mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	Fix #18539: Fix "driver does not support quoting" when using the driver pdo_odbc
This commit is contained in:
		@ -24,6 +24,7 @@ Yii Framework 2 Change Log
 | 
			
		||||
- Enh #18518: Add support for ngrok’s `X-Original-Host` header (brandonkelly)
 | 
			
		||||
- Bug #18529: Fix asset files path with `appendTimestamp` option for non-root-relative base URLs (bizley)
 | 
			
		||||
- Bug #18450: Allow empty string to be passed as a nullable typed argument to a controller's action (dicrtarasov, bizley)
 | 
			
		||||
- Bug #18539: Fix "driver does not support quoting" when using the driver pdo_odbc (xpohoc69)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
2.0.40 December 23, 2020
 | 
			
		||||
 | 
			
		||||
@ -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