summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-02-04 19:51:16 +0000
committerlsces <lester@lsces.co.uk>2026-02-04 19:51:16 +0000
commit3c293d5eaa5659f2bafac7406d52668a4cc649b0 (patch)
tree6ed9a0912e93309e1c4276807c0833c2ceec12de
parent7a03fd9b7817e9b88638fcf8fab93083e2ff9701 (diff)
downloadilluminate-firebird-3c293d5eaa5659f2bafac7406d52668a4cc649b0.tar.gz
illuminate-firebird-3c293d5eaa5659f2bafac7406d52668a4cc649b0.tar.bz2
illuminate-firebird-3c293d5eaa5659f2bafac7406d52668a4cc649b0.zip
Although schema is not used by Firebird, it's necessary for compatibility with other database drivers
-rwxr-xr-xsrc/Schema/Grammars/FirebirdGrammar.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Schema/Grammars/FirebirdGrammar.php b/src/Schema/Grammars/FirebirdGrammar.php
index 6c11385..672726a 100755
--- a/src/Schema/Grammars/FirebirdGrammar.php
+++ b/src/Schema/Grammars/FirebirdGrammar.php
@@ -27,7 +27,7 @@ class FirebirdGrammar extends Grammar
*
* @return string
*/
- public function compileTables()
+ public function compileTables($schema = '')
{
return 'select trim(trailing from rdb$relation_name) as "name" '
.'from rdb$relations '
@@ -41,7 +41,7 @@ class FirebirdGrammar extends Grammar
*
* @return string
*/
- public function compileTableExists()
+ public function compileTableExists($schema = '', $table = '')
{
return 'select rdb$relation_name from rdb$relations where rdb$relation_name = ?';
}
@@ -49,9 +49,10 @@ class FirebirdGrammar extends Grammar
/**
* Compile the query to determine the views.
*
+ * @param string|string[]|null $schema
* @return string
*/
- public function compileViews()
+ public function compileViews($schema)
{
return 'select trim(trailing from rdb$relation_name) as "name", '
.'rdb$view_source as "definition" '
@@ -66,7 +67,7 @@ class FirebirdGrammar extends Grammar
* @param string $table
* @return string
*/
- public function compileColumns($table)
+ public function compileColumns($schema, $table)
{
return 'select trim(trailing from rdb$field_name) as "name" '
.'from rdb$relation_fields '
@@ -131,7 +132,7 @@ class FirebirdGrammar extends Grammar
return sprintf(
"execute block as begin if (exists(%s)) then execute statement '%s'; end",
- str_replace('?', $table, $this->compileTableExists()), // Replace the ? character with the table name.
+ $this->compileTableExists( '', $table),
$this->compileDrop($blueprint, $command)
);
}