Browse Source

Fix #18156: Fix `yii\db\Schema::quoteSimpleTableName()` was checking incorrect quote character

tags/2.0.37
Mathias 4 years ago committed by GitHub
parent
commit
f839a02414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/db/Schema.php

1
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
--------------------

2
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;

Loading…
Cancel
Save