From d2fc9393592606beb2e46ce1c319a007d99ce8a0 Mon Sep 17 00:00:00 2001 From: "olav%bkor.dhs.org" Date: Tue, 14 Nov 2006 20:51:44 +0000 Subject: [PATCH] Do commit-time fix: Add comment explaining the sql modes that are removed git-svn-id: svn://10.0.0.236/trunk@215273 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm b/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm index b3b1cba10fe..d9e6a25101d 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/DB/Mysql.pm @@ -68,6 +68,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));