Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit de37d31

Browse files
author
Nik Barham
committed
Minor bug fix to Subqueries in QB
1 parent 79b6c86 commit de37d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Automatorm/Database/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public function resolveTable()
444444
{
445445
list($sql, $subdata) = $this->table->resolve();
446446
$this->data = array_merge($this->data, $subdata);
447-
return '(' . $this->table->resolve . ') AS subquery';
447+
return '(' . $sql . ') AS subquery';
448448
}
449449
return $this->escapeTable($this->table);
450450
}

0 commit comments

Comments
 (0)