Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infoschema: add VIEWS and ROUTINES table #3108

Merged
merged 6 commits into from
Apr 22, 2017
Merged

Conversation

tiancaiamao
Copy link
Contributor

mysql> show tables;
+------------------------------+
| Tables_in_information_schema |
+------------------------------+
| CHARACTER_SETS               |
| COLLATIONS                   |
| COLUMNS                      |
| ENGINES                      |
| FILES                        |
| KEY_COLUMN_USAGE             |
| PARTITIONS                   |
| PLUGINS                      |
| PROFILING                    |
| REFERENTIAL_CONSTRAINTS      |
| SCHEMATA                     |
| SESSION_VARIABLES            |
| STATISTICS                   |
| TABLES                       |
| TABLE_CONSTRAINTS            |
| TRIGGERS                     |
| USER_PRIVILEGES              |
| VIEWS                        |
+------------------------------+
18 rows in set (0.00 sec)

mysql> select * from VIEWS;
Empty set (0.01 sec)

PTAL @shenli @zimulala @coocood @hanfei1991 @XuHuaiyu @winoros @lamxTyler

@coocood
Copy link
Member

coocood commented Apr 21, 2017

@tiancaiamao
Any tests for select * from information_schema.views?

@tiancaiamao
Copy link
Contributor Author

tiancaiamao commented Apr 21, 2017

Since TiDB doesn't support view, VIEWS is a empty table.
There is a test that checks VIEWS table exists in the schema. @coocood

@tiancaiamao tiancaiamao changed the title infoschema: add VIEWS table infoschema: add VIEWS and ROUTINES table Apr 21, 2017
@coocood
Copy link
Member

coocood commented Apr 21, 2017

LGTM

@ngaut
Copy link
Member

ngaut commented Apr 22, 2017

LGTM

@coocood coocood merged commit 594fab2 into master Apr 22, 2017
@coocood coocood deleted the tiancaiamao/infoschema-views branch April 22, 2017 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants