Bug #46986 | SQL formatter fails for SELECT ... WHERE .. NOT IN ( SELECT ... ) GROUP BY | ||
---|---|---|---|
Submitted: | 28 Aug 2009 22:08 | Modified: | 18 Dec 2009 12:24 |
Reporter: | Carsten Segieth | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Enterprise Monitor: Web | Severity: | S3 (Non-critical) |
Version: | 2.0.6.7159 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[28 Aug 2009 22:08]
Carsten Segieth
[18 Sep 2009 11:30]
Enterprise Tools JIRA Robot
Kay Roepke writes: Both SUBSTR (short version with multiple arguments) and IN recognition have some problems. The SUBSTR failure is fixed, working on the subselect issue.
[29 Sep 2009 15:31]
Enterprise Tools JIRA Robot
Kay Roepke writes: IN clauses are fixed, one issue was a mishandling of the unary NOT operator, confusing the parser to reject IN clauses where present
[3 Mar 2010 11:37]
Enterprise Tools JIRA Robot
Carsten Segieth writes: the following query "without a SUBSTR()" could not be formatted in 2.2.0.1633 - not sure the "not in" problem here is the same as described above as it's not for a subselect but a value list: select group_concat('\\\\\n* ', t.table_schema, '.', t.table_name) table_list from information_schema.tables t left join information_schema.table_constraints c on (t.table_schema = c.table_schema and t.table_name = c.table_name and c.constraint_type in ('primary key','unique')) where t.table_schema not in ('mysql','information_schema') and t.engine not in ('archive','federated') and c.table_name is null full message from the SQL logs: mismatch: select group_concat('\\\\\n* ', t.table_schema, '.', t.table_name) table_list from information_schema.tables t left join information_schema.table_constraints c on (t.table_schema = c.table_schema and t.table_name = c.table_name and c.constraint_type in ('primary key','unique')) where t.table_schema not in ('mysql','information_schema') and t.engine not in ('archive','federated') and c.table_name is null vs. select group_concat( '\\\\\n* ', t.table_schema, '.', t.table_name ) table_list from information_schema.tables t left join information_schema.table_constraints c on (t.table_schema = c.table_schema and t.table_name = c.table_name and c.constraint_type in ('primary key', 'unique')) where in ('mysql', 'information_schema') and in ('archive', 'federated') and c.table_name is null