summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-12 09:15:56 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-12 09:15:56 +0100
commit62d39e4aac3a64fd2551c1d92ce1008386e1d94e (patch)
treec91142033bdbb6246ba26082d3b8509c38c68657
parent5a71aecd8dc74d8d59a6fe1a863aa38c22790637 (diff)
downloadadodb-62d39e4aac3a64fd2551c1d92ce1008386e1d94e.tar.gz
adodb-62d39e4aac3a64fd2551c1d92ce1008386e1d94e.tar.bz2
adodb-62d39e4aac3a64fd2551c1d92ce1008386e1d94e.zip
Add missing functions for firebird pdo driver ?_init needed
-rwxr-xr-x[-rw-r--r--]drivers/adodb-pdo_firebird.inc.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/adodb-pdo_firebird.inc.php b/drivers/adodb-pdo_firebird.inc.php
index 4671b396..7219e448 100644..100755
--- a/drivers/adodb-pdo_firebird.inc.php
+++ b/drivers/adodb-pdo_firebird.inc.php
@@ -27,13 +27,19 @@
class ADODB_pdo_firebird extends ADODB_pdo_base
{
public $dialect = 3;
- public $metaTablesSQL = "select lower(rdb\$relation_name) from rdb\$relations where rdb\$relation_name not like 'RDB\$%'";
+ public $metaTablesSQL = "select lower(rdb\$relation_name) from rdb\$relations where rdb\$relation_name not like 'RDB\$%' and rdb\$relation_name not like 'MON\$%' and rdb\$relation_name not like 'SEC\$%'";
public $metaColumnsSQL = "select lower(a.rdb\$field_name), a.rdb\$null_flag, a.rdb\$default_source, b.rdb\$field_length, b.rdb\$field_scale, b.rdb\$field_sub_type, b.rdb\$field_precision, b.rdb\$field_type from rdb\$relation_fields a, rdb\$fields b where a.rdb\$field_source = b.rdb\$field_name and a.rdb\$relation_name = '%s' order by a.rdb\$field_position asc";
var $arrayClass = 'ADORecordSet_array_pdo_firebird';
+ function _init($parentDriver)
+ {
+ $parentDriver->hasTransactions = true;
+ $parentDriver->hasInsertID = true;
+ }
+
/**
- * Gets the version iformation from the server
+ * Gets the version information from the server
*
* @return string[]
*/
@@ -257,6 +263,11 @@ class ADODB_pdo_firebird extends ADODB_pdo_base
return $this->genID;
}
+ function selectDB($dbName)
+ {
+ return false;
+ }
+
public function selectLimit($sql, $nrows = -1, $offset = -1, $inputarr = false, $secs = 0)
{
$nrows = (int)$nrows;
@@ -402,6 +413,7 @@ class ADORecordSet_pdo_firebird extends ADORecordSet_pdo
*/
public function fetchField($fieldOffset = 0)
{
+ return false;
}
}