Skip to content

Commit 86b505f

Browse files
committed
Fixed prefix not being set properly
1 parent d220cf4 commit 86b505f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,9 @@ protected function concatenateQuery(array $pieces): string
334334
*/
335335
protected function buildAliasedTableName(string $table, array $statements): string
336336
{
337-
$prefix = $statements['aliases'][$table] ?? null;
338-
if ($prefix !== null) {
339-
return sprintf('%s AS %s', $this->wrapSanitizer($table), $this->wrapSanitizer(strtolower($prefix)));
337+
$this->prefix = $statements['aliases'][$table] ?? null;
338+
if ($this->prefix !== null) {
339+
return sprintf('%s AS %s', $this->wrapSanitizer($table), $this->wrapSanitizer(strtolower($this->prefix)));
340340
}
341341

342342
return sprintf('%s', $this->wrapSanitizer($table));

0 commit comments

Comments
 (0)