mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
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:
commit
6d248097e5
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue