summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorolav%bkor.dhs.org <>2006-11-15 05:51:04 +0100
committerolav%bkor.dhs.org <>2006-11-15 05:51:04 +0100
commit9b1749e4fab6dce06687b3610ee6fa049cf2c8f2 (patch)
tree32892ee3df924d8b5e46be9fbefae0c0d0c9f966 /Bugzilla/DB
parent8926e604a5ab2baf79418ce7b7135b20ce967bf2 (diff)
downloadbugzilla-9b1749e4fab6dce06687b3610ee6fa049cf2c8f2.tar.gz
bugzilla-9b1749e4fab6dce06687b3610ee6fa049cf2c8f2.tar.xz
Do commit-time fix: Add comment explaining the sql modes that are removed
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Mysql.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm
index b3b1cba10..d9e6a2510 100644
--- a/Bugzilla/DB/Mysql.pm
+++ b/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));