From 194aa6731349a5eea8f2f70f8413dc5e827fc6f0 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Tue, 26 Sep 2023 08:38:18 +0700 Subject: [PATCH] Add Add line to CHANGELOG.md, update test --- CHANGELOG.md | 4 ++++ tests/Db/Schema/QuoterTest.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3af0daf3b..ae9ea1644 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ ## 1.1.2 under development - Bug #751: Fix collected debug actions (@xepozz) +- Enh #756: Refactor Quoter (@Tigrov) +- Bug #756: Fix `quoteSql()` for sql containing table with prefix (@Tigrov) +- Bug #756: Fix `getTableNameParts()` for cases when different quotes for tables and columns (@Tigrov) +- Bug #756: Fix `quoteTableName()` for sub-query with alias (@Tigrov) ## 1.1.1 August 16, 2023 diff --git a/tests/Db/Schema/QuoterTest.php b/tests/Db/Schema/QuoterTest.php index ec8323913..3d7bd8599 100644 --- a/tests/Db/Schema/QuoterTest.php +++ b/tests/Db/Schema/QuoterTest.php @@ -105,7 +105,7 @@ public function testQuoteSqlWithTablePrefix(): void public function testQuoteTableNameWithQueryAlias() { - $quoter = new Quoter('`', '`', 'prefix_'); + $quoter = new Quoter('`', '`'); $name = '(SELECT * FROM table) alias'; $this->assertSame($name, $quoter->quoteTableName($name));