summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-02-24 16:54:17 +0000
committerlsces <lester@lsces.co.uk>2026-02-24 16:54:17 +0000
commit5a5c31e8b7471b7196c08254b386426059018780 (patch)
tree6a7cbbcb45898f9fd9893df35b626ec7bad65e2e
parentf03fc2a1a747fde52c5f5f39e59037cc6c8e675a (diff)
downloadilluminate-firebird-5a5c31e8b7471b7196c08254b386426059018780.tar.gz
illuminate-firebird-5a5c31e8b7471b7196c08254b386426059018780.tar.bz2
illuminate-firebird-5a5c31e8b7471b7196c08254b386426059018780.zip
Magic base to removing double quote wrapping. wrapValue is the main source of this wrap and other areas simply fall through to it. Also removed an earlier fix for a missing set of double quotes on Enum
-rwxr-xr-xsrc/Schema/Grammars/FirebirdGrammar.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Schema/Grammars/FirebirdGrammar.php b/src/Schema/Grammars/FirebirdGrammar.php
index e76aff7..cecef1a 100755
--- a/src/Schema/Grammars/FirebirdGrammar.php
+++ b/src/Schema/Grammars/FirebirdGrammar.php
@@ -499,7 +499,7 @@ class FirebirdGrammar extends Grammar
$column->default = null;
}
- return "VARCHAR(255) $default CHECK (\"{$column->name}\" IN (".implode(', ', $allowed).'))';
+ return "VARCHAR(255) $default CHECK ({$column->name} IN (".implode(', ', $allowed).'))';
}
/**
@@ -651,4 +651,15 @@ class FirebirdGrammar extends Grammar
{
return 'VARCHAR(17)';
}
+
+ /**
+ * Wrap a single string in keyword identifiers.
+ *
+ * @param string $value
+ * @return string
+ */
+ protected function wrapValue($value)
+ {
+ return $value;
+ }
}