src/Oci8/Query/Grammars/OracleGrammar.php 1 location
|
@@ 383-390 (lines=8) @@
|
| 380 |
|
* @param string $value |
| 381 |
|
* @return string |
| 382 |
|
*/ |
| 383 |
|
protected function wrapValue($value) |
| 384 |
|
{ |
| 385 |
|
if ($this->isReserved($value)) { |
| 386 |
|
return '"' . str_replace('"', '""', $value) . '"'; |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
return $value !== '*' ? sprintf($this->wrapper, $value) : $value; |
| 390 |
|
} |
| 391 |
|
} |
| 392 |
|
|
src/Oci8/Schema/Grammars/OracleGrammar.php 1 location
|
@@ 685-692 (lines=8) @@
|
| 682 |
|
* @param string $value |
| 683 |
|
* @return string |
| 684 |
|
*/ |
| 685 |
|
protected function wrapValue($value) |
| 686 |
|
{ |
| 687 |
|
if ($this->isReserved($value)) { |
| 688 |
|
return '"' . str_replace('"', '""', $value) . '"'; |
| 689 |
|
} |
| 690 |
|
|
| 691 |
|
return $value !== '*' ? sprintf($this->wrapper, $value) : $value; |
| 692 |
|
} |
| 693 |
|
} |
| 694 |
|
|