Skip to content

Commit

Permalink
match wrapValue with Query/Grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
taka-oyama committed Aug 17, 2022
1 parent d41a04c commit 2f43479
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Colopl/Spanner/Schema/Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,18 +431,15 @@ protected function modifyNullable(Blueprint $blueprint, Fluent $column)
}

/**
* Wrap a single string in keyword identifiers.
*
* @param string $value
* @return string
* @inheritDoc
*/
protected function wrapValue($value)
{
if ($value !== '*') {
return '`'.str_replace('`', '``', $value).'`';
if ($value === '*') {
return $value;
}

return $value;
return '`'.str_replace('`', '``', $value).'`';
}

/**
Expand Down

0 comments on commit 2f43479

Please sign in to comment.