aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/oracle.php
diff options
context:
space:
mode:
authorJosh Woody <a_jelly_doughnut@phpbb.com>2010-06-13 19:18:35 -0500
committerJosh Woody <a_jelly_doughnut@phpbb.com>2010-06-13 19:18:35 -0500
commite942af533165dd3ef5236ef6b6a7499613b26693 (patch)
treea4b1687eadb317ec3484d4a32dbfefd100c0e623 /phpBB/includes/db/oracle.php
parent355d4b8ff8d616ef8650240f936517ede03296b8 (diff)
downloadforums-e942af533165dd3ef5236ef6b6a7499613b26693.tar
forums-e942af533165dd3ef5236ef6b6a7499613b26693.tar.gz
forums-e942af533165dd3ef5236ef6b6a7499613b26693.tar.bz2
forums-e942af533165dd3ef5236ef6b6a7499613b26693.tar.xz
forums-e942af533165dd3ef5236ef6b6a7499613b26693.zip
[ticket/9132] Oracle CLOB support is broken, preventing storage of long strings
This reverts Oracle support to the state it was in prior to phpBB 3.0.6. That is, storage of long strings works again (e.g. posts > 4 KB), but the database backup/restore functionality is broken. We feel that the ability to store long strings is more important than the DB restore, since Oracle 10g itself provides tools for backing up databases. PHPBB3-9132
Diffstat (limited to 'phpBB/includes/db/oracle.php')
-rw-r--r--phpBB/includes/db/oracle.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/db/oracle.php b/phpBB/includes/db/oracle.php
index 55b3599800..5a9b18abf0 100644
--- a/phpBB/includes/db/oracle.php
+++ b/phpBB/includes/db/oracle.php
@@ -261,6 +261,10 @@ class dbal_oracle extends dbal
{
$cols = explode(', ', $regs[2]);
+/* The code inside this comment block breaks clob handling, but does allow the
+ database restore script to work. If you want to allow no posts longer than 4KB
+ and/or need the db restore script, uncomment this.
+
preg_match_all('/\'(?:[^\']++|\'\')*+\'|[\d-.]+/', $regs[3], $vals, PREG_PATTERN_ORDER);
if (sizeof($cols) !== sizeof($vals))
@@ -310,6 +314,7 @@ class dbal_oracle extends dbal
$vals = array(0 => $vals);
}
+*/
$inserts = $vals[0];
unset($vals);