Skip to content

Commit 9f9372d

Browse files
authored
Replace call of SchemaInterface::getRawTableName() to QuoterInterface::getRawTableName() (#272)
1 parent a777997 commit 9f9372d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from `$table, $columns, $rows` to `$table, $rows, $columns = []` (@Tigrov)
77
- Enh #260: Support `Traversable` values for `DMLQueryBuilder::batchInsert()` method with empty columns (@Tigrov)
88
- Enh #255: Implement `SqlParser` and `ExpressionBuilder` driver classes (@Tigrov)
9+
- Chg #272: Replace call of `SchemaInterface::getRawTableName()` to `QuoterInterface::getRawTableName()` (@Tigrov)
910

1011
## 1.3.0 March 21, 2024
1112

src/Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function insertWithReturningPks(string $table, array $columns): bool|arra
5454
$returnParams[$phName]['dataType'] = PDO::PARAM_INT;
5555
}
5656

57-
$returnParams[$phName]['size'] = $columnSchemas[$name]->getSize() ?? -1;
57+
$returnParams[$phName]['size'] = isset($columnSchemas[$name]) ? $columnSchemas[$name]->getSize() : -1;
5858

5959
$returning[] = $this->db->getQuoter()->quoteColumnName($name);
6060
}

src/Schema.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ protected function findViewNames(string $schema = ''): array
812812
*/
813813
protected function getCacheKey(string $name): array
814814
{
815-
return array_merge([self::class], $this->generateCacheKey(), [$this->getRawTableName($name)]);
815+
return array_merge([self::class], $this->generateCacheKey(), [$this->db->getQuoter()->getRawTableName($name)]);
816816
}
817817

818818
/**

0 commit comments

Comments
 (0)