mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
A "fix" for problem discovered in BUG#8510: remove ONLY_FULL_GROUP_BY mode from ANSI mode, as currently
ONLY_FULL_GROUP_BY mode is overly restrictive. mysql-test/r/ansi.result: A "fix" for problem discovered in BUG#8510: remove ONLY_FULL_GROUP_BY mode from ANSI mode. mysql-test/t/ansi.test: A "fix" for problem discovered in BUG#8510: remove ONLY_FULL_GROUP_BY mode from ANSI mode. sql/set_var.cc: A "fix" for problem discovered in BUG#8510: remove ONLY_FULL_GROUP_BY mode from ANSI mode.
This commit is contained in:
@ -3089,8 +3089,14 @@ ulong fix_sql_mode(ulong sql_mode)
|
||||
*/
|
||||
|
||||
if (sql_mode & MODE_ANSI)
|
||||
{
|
||||
sql_mode|= (MODE_REAL_AS_FLOAT | MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES |
|
||||
MODE_IGNORE_SPACE | MODE_ONLY_FULL_GROUP_BY);
|
||||
MODE_IGNORE_SPACE);
|
||||
/*
|
||||
MODE_ONLY_FULL_GROUP_BY removed from ANSI mode because it is currently
|
||||
overly restrictive (see BUG#8510).
|
||||
*/
|
||||
}
|
||||
if (sql_mode & MODE_ORACLE)
|
||||
sql_mode|= (MODE_PIPES_AS_CONCAT | MODE_ANSI_QUOTES |
|
||||
MODE_IGNORE_SPACE |
|
||||
|
Reference in New Issue
Block a user