diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2005-01-24 18:44:54 +0300 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2005-01-24 18:44:54 +0300 |
commit | e9db02074f1a4c78c02eff7f5c8f02362d91ae05 (patch) | |
tree | a755eede073a2582d229609db8bb9a1ab32d8860 /sql/table.h | |
parent | 7d358a015f0bd1cefdabce0ef796569239690053 (diff) | |
download | mariadb-git-e9db02074f1a4c78c02eff7f5c8f02362d91ae05.tar.gz |
Additional fix for WL#1629: SHOW with WHERE(discussed with PeterG)
- Do not allow a column list as part of SHOW WITH WHERE task.
- The WHERE clause must accept field names which are
valid in SHOW, not INFORMATION_SCHEMA names.
mysql-test/r/information_schema.result:
The test correction
mysql-test/t/information_schema.test:
The test correction
sql/sql_base.cc:
Process field translation table for 'show' commands
sql/sql_parse.cc:
schema_table_seformed is always true for 'show' commands
sql/sql_show.cc:
- Do not allow a column list as part of SHOW WITH WHERE task.
- The WHERE clause must accept field names which are
valid in SHOW, not INFORMATION_SCHEMA names.
sql/sql_yacc.yy:
Do not allow a column list as part of SHOW WITH WHERE task
sql/table.h:
A new 'schema_table_reformed' variable in table_list
If schema_table_reformed is true select items should be
translated using field translation table
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index 8240a3445ec..3b1f8244e1d 100644 --- a/sql/table.h +++ b/sql/table.h @@ -356,6 +356,7 @@ typedef struct st_table_list st_select_lex_unit *derived; /* SELECT_LEX_UNIT of derived table */ ST_SCHEMA_TABLE *schema_table; /* Information_schema table */ st_select_lex *schema_select_lex; + bool schema_table_reformed; /* link to select_lex where this table was used */ st_select_lex *select_lex; st_lex *view; /* link on VIEW lex for merging */ |