aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/firebird.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/firebird.php')
-rw-r--r--phpBB/includes/db/firebird.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/phpBB/includes/db/firebird.php b/phpBB/includes/db/firebird.php
index b258b96fa1..21dd6f0127 100644
--- a/phpBB/includes/db/firebird.php
+++ b/phpBB/includes/db/firebird.php
@@ -28,6 +28,9 @@ class dbal_firebird extends dbal
var $last_query_text = '';
var $service_handle = false;
+ // can't truncate a table
+ var $truncate = false;
+
/**
* Connect to server
*/
@@ -377,6 +380,20 @@ class dbal_firebird extends dbal
}
/**
+ * Expose a DBMS specific function
+ */
+ function sql_function($type, $col)
+ {
+ switch ($type)
+ {
+ case 'length_varchar':
+ case 'length_text':
+ return 'OCTET_LENGTH(' . $col . ')';
+ break;
+ }
+ }
+
+ /**
* Build LIKE expression
* @access private
*/