From 3f40ffa5750b3e13f0133c14b63547a52c858c07 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Fri, 7 May 1999 21:49:24 +0000 Subject: [PATCH] Provide an option to tell mysql "set option SQL_BIG_TABLES=1". This is necessary for very big queries, but it will slow things up some otherwise. --- webtools/bugzilla/buglist.cgi | 3 +++ webtools/bugzilla/defparams.pl | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/webtools/bugzilla/buglist.cgi b/webtools/bugzilla/buglist.cgi index bd83f34ed504..4727afca6ba3 100755 --- a/webtools/bugzilla/buglist.cgi +++ b/webtools/bugzilla/buglist.cgi @@ -461,6 +461,9 @@ if ($serverpush) { } } +if (Param('expectbigqueries')) { + SendSQL("set option SQL_BIG_TABLES=1"); +} SendSQL($query); my $count = 0; diff --git a/webtools/bugzilla/defparams.pl b/webtools/bugzilla/defparams.pl index f5b3d4198827..ac19dcf0917f 100644 --- a/webtools/bugzilla/defparams.pl +++ b/webtools/bugzilla/defparams.pl @@ -292,5 +292,10 @@ DefParam("usebrowserinfo", "b", 1); +DefParam("expectbigqueries", + "If this is on, then we will tell mysql to set option SQL_BIG_TABLES=1 before doing queries on bugs. This will be a little slower, but one will not get the error The table ### is full for big queries that require a big temporary table.", + "b", + 0); + 1;