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
This commit is contained in:
olav%bkor.dhs.org
2006-11-14 20:51:44 +00:00
parent 728fe40c1c
commit d2fc939359

View File

@@ -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));