mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
[ticket/9946] Allow storage of data >4kB on Oracle again
This fixes the fix to PHPBB3-9132, which introduced a fatal error on Oracle. PHPBB3-9946
This commit is contained in:
parent
21c5e6f149
commit
f6c6de4539
@ -269,11 +269,12 @@ class dbal_oracle extends dbal
|
|||||||
{
|
{
|
||||||
$cols = explode(', ', $regs[2]);
|
$cols = explode(', ', $regs[2]);
|
||||||
|
|
||||||
|
preg_match_all('/\'(?:[^\']++|\'\')*+\'|[\d-.]+/', $regs[3], $vals, PREG_PATTERN_ORDER);
|
||||||
|
|
||||||
/* The code inside this comment block breaks clob handling, but does allow the
|
/* 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
|
database restore script to work. If you want to allow no posts longer than 4KB
|
||||||
and/or need the db restore script, uncomment this.
|
and/or need the db restore script, uncomment this.
|
||||||
|
|
||||||
preg_match_all('/\'(?:[^\']++|\'\')*+\'|[\d-.]+/', $regs[3], $vals, PREG_PATTERN_ORDER);
|
|
||||||
|
|
||||||
if (sizeof($cols) !== sizeof($vals))
|
if (sizeof($cols) !== sizeof($vals))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user