From 9acc5f2037e4c25f9b3ad06328a46b85e836bc46 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 4 May 2009 16:48:20 +0000 Subject: [PATCH] "setting the value to 7, after reports on the user list, thought MySQL 5.0.51 with MyISAM engine works up to 10" --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index 0f592dec36..b788d8f402 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -980,7 +980,8 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper // MySQL 5.0 has a nesting limit for subqueries // --> we replace the so far cumulated subqueries with their result // no idea about the other DBMS, but this does NOT hurt ... - if ($n > 1 && !(($n-1) % 10) && !($query = self::$pdo->query($query)->fetchColumn())) + // setting the value to 7, after reports on the user list, thought MySQL 5.0.51 with MyISAM engine works up to 10 + if ($n > 1 && !(($n-1) % 7) && !($query = self::$pdo->query($query)->fetchColumn())) { if (self::LOG_LEVEL > 1) {