1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Bug#8733 - server accepts malformed query (multiply mentioned distinct)

Detect conflicting options in SELECT
This commit is contained in:
antony@ltantony.mysql.com
2005-05-09 14:31:46 +01:00
parent 9eaf381d03
commit cc3bfc6ff1
4 changed files with 47 additions and 2 deletions

View File

@ -211,6 +211,9 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
key checks in some cases */
#define OPTION_RELAXED_UNIQUE_CHECKS (1L << 27)
#define SELECT_NO_UNLOCK (1L << 28)
/* Thr following is used to detect a conflict with DISTINCT
in the user query has requested */
#define SELECT_ALL (1L << 29)
/* If set to 0, then the thread will ignore all warnings with level notes.
Set by executing SET SQL_NOTES=1 */