Skip to content

Commit 283d9d8

Browse files
committed
Use identifier cache for schemaless TableIdentifier in renderTableSource
1 parent e42ce94 commit 283d9d8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Sql/Platform/AbstractSqlRenderer.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ public function renderTableSource(
121121
}
122122

123123
if ($table instanceof TableIdentifier) {
124-
$rendered = $this->platform->quoteIdentifier(
125-
name: $table->table,
126-
prefix: $table->schema,
127-
);
124+
$rendered = $table->schema === null
125+
? ($this->identifier[$table->table] ??= $this->platform->quoteIdentifier($table->table))
126+
: $this->platform->quoteIdentifier(name: $table->table, prefix: $table->schema);
128127
} elseif ($table instanceof Select) {
129128
$rendered = '(' . $this->processSubSelect($table) . ')';
130129
} elseif (is_string($table)) {

0 commit comments

Comments
 (0)