From 6468dc8d776cf6347a4e32fa47453f58f21e7ba8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 4 May 2009 16:47:21 +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 b2aa96891a..b3a6b176af 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -992,7 +992,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) {