summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-02-25 13:01:38 +0000
committerlsces <lester@lsces.co.uk>2026-02-25 13:01:38 +0000
commit7cbe7a08e71bc878c6476525cb4bba07fc9a8a88 (patch)
tree5c0ea5791004280a9e472566e3763140cbd62c43
parentc6824d1ab23d6507677b97842b9729b8f42e54d4 (diff)
downloadilluminate-firebird-7cbe7a08e71bc878c6476525cb4bba07fc9a8a88.tar.gz
illuminate-firebird-7cbe7a08e71bc878c6476525cb4bba07fc9a8a88.tar.bz2
illuminate-firebird-7cbe7a08e71bc878c6476525cb4bba07fc9a8a88.zip
wrapValue is the correct place to control the wrapping of table and column names amongst other things
-rwxr-xr-xsrc/Query/Grammars/FirebirdGrammar.php18
1 files changed, 18 insertions, 0 deletions
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
@@ -145,6 +145,24 @@ class FirebirdGrammar extends Grammar
}
/**
+ * 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.
*
* @param string $sql