From: Frédéric Buclin Date: Wed, 25 Dec 2013 08:58:00 +0000 (+0100) Subject: Bug 870369: An error about longdescs.comment_id is thrown by MySQL 5.1 and older... X-Git-Tag: bugzilla-4.5.2~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b55436dd3711772ff632eaa805b6c19e588b791;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm index 9c636e2b43..fcb3ef8893 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; }