diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-06-17 19:15:17 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-06-17 19:15:17 +0200 |
commit | 6d248097e5422bf769fb3756e64e36e243865f79 (patch) | |
tree | f21e1720246f985bec46368a06d35bee54400109 /phpBB | |
parent | Merge branch 'ticket/rxu/9606' into develop-olympus (diff) | |
parent | [ticket/9132] Oracle CLOB support is broken, preventing storage of long strings (diff) | |
download | phpbb-6d248097e5422bf769fb3756e64e36e243865f79.tar.gz phpbb-6d248097e5422bf769fb3756e64e36e243865f79.tar.bz2 phpbb-6d248097e5422bf769fb3756e64e36e243865f79.zip |
Merge branch 'ticket/jellydoughnut/9132' into develop-olympus
* ticket/jellydoughnut/9132:
[ticket/9132] Oracle CLOB support is broken, preventing storage of long strings
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/db/oracle.php | 5 |
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); |