Skip to content

Commit

Permalink
Merge branch '3.x' of github.com:auraphp/Aura.SqlQuery into 3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M. Jones committed Apr 19, 2017
2 parents 052e054 + cd93d42 commit b1bcd35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ protected function getQuoter()
protected function newQuoter()
{
$quoterClass = "Aura\SqlQuery\\{$this->db}\Quoter";
if ($this->common || ! class_exists($quoterClass)) {
if (! class_exists($quoterClass)) {
$quoterClass = "Aura\SqlQuery\Common\Quoter";
}
return new $quoterClass();
Expand Down
4 changes: 4 additions & 0 deletions tests/Common/QuoterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public function testQuoteName()
// star dot star
$actual = $this->quoter->quoteName('*.*');
$this->assertSame('*.*', $actual);

// table dot star
$actual = $this->quoter->quoteName('table.*');
$this->assertSame('"table".*', $actual);
}

public function testQuoteNamesIn()
Expand Down

0 comments on commit b1bcd35

Please sign in to comment.