Skip to content

Improve get_used_tables_from_queries handling of table aliases#109

Merged
macbre merged 1 commit intomasterfrom
improve-get-used-tables-from-queries
Jan 20, 2018
Merged

Improve get_used_tables_from_queries handling of table aliases#109
macbre merged 1 commit intomasterfrom
improve-get-used-tables-from-queries

Conversation

@macbre
Copy link
Owner

@macbre macbre commented Jan 20, 2018

Use sql_metadata.get_query_tables instead of EXPLAIN query (that returns the table alias not its real name).

Example:

SELECT /* a comment */ foo FROM `0006_not_used_columns` AS r WHERE id = 1;

Use sql_metadata.get_query_tables instead of using EXPLAIN query (that returns the table alias not its real name).

Example:

SELECT /* a comment */ foo FROM `0006_not_used_columns` AS r WHERE id = 1;
@macbre macbre added this to the v1.1 milestone Jan 20, 2018
@macbre macbre changed the title Improve get_used_tables_from_queries Improve get_used_tables_from_queries handling of table aliases Jan 20, 2018
@macbre macbre merged commit fb43fcc into master Jan 20, 2018
@macbre macbre deleted the improve-get-used-tables-from-queries branch January 20, 2018 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant