From f839a024147368f42ab4d31c198fc94d4db5e40d Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 7 Aug 2020 10:59:51 +0200 Subject: [PATCH] Fix #18156: Fix `yii\db\Schema::quoteSimpleTableName()` was checking incorrect quote character --- framework/CHANGELOG.md | 1 + framework/db/Schema.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/CHANGELOG.md b/framework/CHANGELOG.md index 5aa8473..c1e4f4a 100644 --- a/framework/CHANGELOG.md +++ b/framework/CHANGELOG.md @@ -14,6 +14,7 @@ Yii Framework 2 Change Log - Enh #18205: Add `.phpstorm.meta.php` file for better auto-completion in PhpStorm (vjik) - Bug #18198: Fix saving tables with trigger by outputting inserted data from insert query with usage of temporary table (darkdef) - Bug #18203: PDO exception code was not properly passed to `yii\db\Exception` (samdark) +- Bug #18156: Fix `yii\db\Schema::quoteSimpleTableName()` was checking incorrect quote character (M4tho, samdark) 2.0.36 July 07, 2020 -------------------- diff --git a/framework/db/Schema.php b/framework/db/Schema.php index 48a6b15..c0ed722 100644 --- a/framework/db/Schema.php +++ b/framework/db/Schema.php @@ -559,7 +559,7 @@ abstract class Schema extends BaseObject */ public function quoteSimpleColumnName($name) { - if (is_string($this->tableQuoteCharacter)) { + if (is_string($this->columnQuoteCharacter)) { $startingCharacter = $endingCharacter = $this->columnQuoteCharacter; } else { list($startingCharacter, $endingCharacter) = $this->columnQuoteCharacter;