]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Provide an option to tell mysql "set option SQL_BIG_TABLES=1". This
authorterry%mozilla.org <>
Sat, 8 May 1999 04:49:23 +0000 (04:49 +0000)
committerterry%mozilla.org <>
Sat, 8 May 1999 04:49:23 +0000 (04:49 +0000)
is necessary for very big queries, but it will slow things up some
otherwise.

buglist.cgi
defparams.pl

index bd83f34ed504a1bdd3e1fa809ba05ac5f77c840a..4727afca6ba3b43b131fd6cbbd634a4bc5c3da2e 100755 (executable)
@@ -461,6 +461,9 @@ if ($serverpush) {
     }
 }
 
+if (Param('expectbigqueries')) {
+    SendSQL("set option SQL_BIG_TABLES=1");
+}
 SendSQL($query);
 
 my $count = 0;
index f5b3d41988277d57fa8003f31b3a53f4d3ef95d0..ac19dcf0917f4f6e64893141c73978ab1bf06599 100644 (file)
@@ -292,5 +292,10 @@ DefParam("usebrowserinfo",
         "b",
         1);
 
+DefParam("expectbigqueries",
+         "If this is on, then we will tell mysql to <tt>set option SQL_BIG_TABLES=1</tt> before doing queries on bugs.  This will be a little slower, but one will not get the error <tt>The table ### is full</tt> for big queries that require a big temporary table.",
+         "b",
+         0);
+
 1;