]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 870369: An error about longdescs.comment_id is thrown by MySQL 5.1 and older...
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 25 Dec 2013 08:58:00 +0000 (09:58 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 25 Dec 2013 08:58:00 +0000 (09:58 +0100)
r=wicked a=sgreen

Bugzilla/DB/Mysql.pm

index 9c636e2b43efd753e1cd619731e5ed87f9b016ae..fcb3ef889333c85c35220978aee0f9b697422579 100644 (file)
@@ -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;
 }