Skip to content

Commit

Permalink
Merge pull request #20 from GSedi/fix-expression-quotes-wrapping
Browse files Browse the repository at this point in the history
FIX: remove quoting expressions
  • Loading branch information
AidynMakhataev authored Dec 2, 2020
2 parents 063e89a + ae89f02 commit 599fe68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Tarantool/Query/Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ protected function addQuotes(string $string): string
*/
public function wrapTable($value)
{
if ($this->isExpression($value)) {
return parent::wrapTable($value);
}
return '"'.str_replace('"', '""', strtoupper($value)).'"';
}

Expand Down

0 comments on commit 599fe68

Please sign in to comment.