Merge branch 'ticket/jellydoughnut/9132' into develop-olympus

* ticket/jellydoughnut/9132:
  [ticket/9132] Oracle CLOB support is broken, preventing storage of long strings
This commit is contained in:
Andreas Fischer 2010-06-17 19:15:17 +02:00
commit 6d248097e5

View file

@ -261,6 +261,10 @@ class dbal_oracle extends dbal
{ {
$cols = explode(', ', $regs[2]); $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); preg_match_all('/\'(?:[^\']++|\'\')*+\'|[\d-.]+/', $regs[3], $vals, PREG_PATTERN_ORDER);
if (sizeof($cols) !== sizeof($vals)) if (sizeof($cols) !== sizeof($vals))
@ -310,6 +314,7 @@ class dbal_oracle extends dbal
$vals = array(0 => $vals); $vals = array(0 => $vals);
} }
*/
$inserts = $vals[0]; $inserts = $vals[0];
unset($vals); unset($vals);