mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	Fixes #6271: Query caching returns the same data when running the same SQL with different fetch modes
This commit is contained in:
		
				
					committed by
					
						
						Qiang Xue
					
				
			
			
				
	
			
			
			
						parent
						
							2a0797dd23
						
					
				
				
					commit
					25a7c84ef2
				
			@ -35,6 +35,7 @@ Yii Framework 2 Change Log
 | 
				
			|||||||
- Bug #6164: Added missing support for `yii\db\Expression` to QueryBuilder `BETWEEN` and `LIKE` conditions (cebe)
 | 
					- Bug #6164: Added missing support for `yii\db\Expression` to QueryBuilder `BETWEEN` and `LIKE` conditions (cebe)
 | 
				
			||||||
- Bug #6236: No JS scripts should be registered when `yii\widgets\ActiveForm::enableClientScript` is false (qiangxue)
 | 
					- Bug #6236: No JS scripts should be registered when `yii\widgets\ActiveForm::enableClientScript` is false (qiangxue)
 | 
				
			||||||
- Bug #6266: Clicking on reset button does not hide error summary when using `ActiveForm` (InteLigent, qiangxue)
 | 
					- Bug #6266: Clicking on reset button does not hide error summary when using `ActiveForm` (InteLigent, qiangxue)
 | 
				
			||||||
 | 
					- Bug #6271: Query caching returns the same data when running the same SQL with different fetch modes (grachov)
 | 
				
			||||||
- Bug: Gii console command help information does not contain global options (qiangxue)
 | 
					- Bug: Gii console command help information does not contain global options (qiangxue)
 | 
				
			||||||
- Bug: `yii\web\UrlRule` was unable to create URLs for rules containing unicode characters (samdark)
 | 
					- Bug: `yii\web\UrlRule` was unable to create URLs for rules containing unicode characters (samdark)
 | 
				
			||||||
- Bug: `yii\web\AssetManager` should not publish disabled asset bundles (qiangxue)
 | 
					- Bug: `yii\web\AssetManager` should not publish disabled asset bundles (qiangxue)
 | 
				
			||||||
 | 
				
			|||||||
@ -799,6 +799,7 @@ class Command extends Component
 | 
				
			|||||||
                $cacheKey = [
 | 
					                $cacheKey = [
 | 
				
			||||||
                    __CLASS__,
 | 
					                    __CLASS__,
 | 
				
			||||||
                    $method,
 | 
					                    $method,
 | 
				
			||||||
 | 
					                    $fetchMode,
 | 
				
			||||||
                    $this->db->dsn,
 | 
					                    $this->db->dsn,
 | 
				
			||||||
                    $this->db->username,
 | 
					                    $this->db->username,
 | 
				
			||||||
                    $rawSql,
 | 
					                    $rawSql,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user