From 7cbe7a08e71bc878c6476525cb4bba07fc9a8a88 Mon Sep 17 00:00:00 2001 From: lsces Date: Wed, 25 Feb 2026 13:01:38 +0000 Subject: wrapValue is the correct place to control the wrapping of table and column names amongst other things --- src/Query/Grammars/FirebirdGrammar.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Query/Grammars/FirebirdGrammar.php b/src/Query/Grammars/FirebirdGrammar.php index 8b9edd3..888d150 100755 --- a/src/Query/Grammars/FirebirdGrammar.php +++ b/src/Query/Grammars/FirebirdGrammar.php @@ -144,6 +144,24 @@ class FirebirdGrammar extends Grammar return "insert into $table ($columns) values $parameters returning *"; } + /** + * Wrap a single string in keyword identifiers. + * + * @param string $value + * @return string + */ + protected function wrapValue($value) + { + // still working on the potential problem of reserved words needing wrapping + // year is certainly one but others depend on version of Firebird +// if ($value !== '*') { +// return '"'.str_replace('"', '""', $value).'"'; +// } +// + // Currently just return unwrapped + return $value; + } + /** * Wrap a union subquery in parentheses. * -- cgit v1.3