]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Do commit-time fix: Add comment explaining the sql modes that are removed
authorolav%bkor.dhs.org <>
Wed, 15 Nov 2006 04:51:44 +0000 (04:51 +0000)
committerolav%bkor.dhs.org <>
Wed, 15 Nov 2006 04:51:44 +0000 (04:51 +0000)
Bugzilla/DB/Mysql.pm

index 44b0931f82ec223c4dece8c8337b8ab7a7ffb4fc..34504b24ba5fecebdbbdf6e4e41ab356b004e5e7 100644 (file)
@@ -73,6 +73,9 @@ sub new {
     # Bug 321645 - disable MySQL strict mode, if set
     my $sql_mode = $self->selectrow_array('SELECT @@sql_mode');
     if ($sql_mode) {
+        # STRICT_TRANS_TABLE or STICT_ALL_TABLES enable MySQL strict mode,
+        # causing bug 321645. TRADITIONAL sets these modes (among others) as
+        # well, so it has to be stipped as well
         my $new_sql_mode =
             join(",", grep {$_ !~ /^STRICT_(?:TRANS|ALL)_TABLES|TRADITIONAL$/}
                             split(/,/, $sql_mode));