summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2013-12-25 09:58:00 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2013-12-25 09:58:00 +0100
commit3b55436dd3711772ff632eaa805b6c19e588b791 (patch)
treef64d8ab6a25dedb624598e5d6c30c58e1df9a8ca /Bugzilla
parent7d65722db6107ed7bee465a98bb46b2046756ff9 (diff)
downloadbugzilla-3b55436dd3711772ff632eaa805b6c19e588b791.tar.gz
bugzilla-3b55436dd3711772ff632eaa805b6c19e588b791.tar.xz
Bug 870369: An error about longdescs.comment_id is thrown by MySQL 5.1 and older when upgrading to 4.4 if sql_auto_is_null = 1
r=wicked a=sgreen
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Mysql.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm
index 9c636e2b4..fcb3ef889 100644
--- a/Bugzilla/DB/Mysql.pm
+++ b/Bugzilla/DB/Mysql.pm
@@ -107,6 +107,10 @@ sub new {
# into bugs_fulltext).
$self->do('SET SESSION group_concat_max_len = 128000000');
+ # MySQL 5.5.2 and older have this variable set to true, which causes
+ # trouble, see bug 870369.
+ $self->do('SET SESSION sql_auto_is_null = 0');
+
return $self;
}