We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d220cf4 commit 86b505fCopy full SHA for 86b505f
1 file changed
src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php
@@ -334,9 +334,9 @@ protected function concatenateQuery(array $pieces): string
334
*/
335
protected function buildAliasedTableName(string $table, array $statements): string
336
{
337
- $prefix = $statements['aliases'][$table] ?? null;
338
- if ($prefix !== null) {
339
- return sprintf('%s AS %s', $this->wrapSanitizer($table), $this->wrapSanitizer(strtolower($prefix)));
+ $this->prefix = $statements['aliases'][$table] ?? null;
+ if ($this->prefix !== null) {
+ return sprintf('%s AS %s', $this->wrapSanitizer($table), $this->wrapSanitizer(strtolower($this->prefix)));
340
}
341
342
return sprintf('%s', $this->wrapSanitizer($table));
0 commit comments