aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/oracle.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/oracle.php')
-rw-r--r--phpBB/includes/db/oracle.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/phpBB/includes/db/oracle.php b/phpBB/includes/db/oracle.php
index 18740fb036..0640d3d354 100644
--- a/phpBB/includes/db/oracle.php
+++ b/phpBB/includes/db/oracle.php
@@ -534,6 +534,23 @@ class dbal_oracle extends dbal
}
/**
+ * Expose a DBMS specific function
+ */
+ function sql_function($type, $col)
+ {
+ switch ($type)
+ {
+ case 'length_varchar':
+ return 'LENGTH(' . $col . ')';
+ break;
+
+ case 'length_text':
+ return 'dbms_lob.getlength(' . $col . ')';
+ break;
+ }
+ }
+
+ /**
* Build LIKE expression
* @access private
*/