Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further improvements of the code completion feature.
- Defined an explict DOT_SYM in the ANTLR grammar. - Added a check in the object names cache for an existing schema when querying tables + views to avoid an exception there. - Fixed retrieval of table spaces and logfile groups (which can return duplicates or empty values) in object name cache. - Lowered the trigger time for code completion in an sql editor to a very small value to have it come up quicker, but it looks like something else is adding a delay there. - Large overhaul of the auto completion code: + Added synonyms. + Optimized blocks with many single terminal alts (like the keyword and keyword_sp rules), which now use a set for quick matching. + Handled more ANTLR token types when parsing a grammar (e.g. label assignments). + Improved table reference retrieval with proper handling of nesting. Works also with invalid queries as long as the actual references are ok. + Added support for handling "new" and "old" column references in a create trigger statement. + Added support for UDFs, collations and charsets (partially, need to update the object name cache yet to deliver the actual names for them). - Corrected the field_spec in the MySQL grammar, which was using a column reference (but needs a simple name instead). - Corrected the engine reference in the alter_log_file_group rule, so we can show engines properly there too. Review by: lolek (rb #11663)
- Loading branch information
1 parent
87840f4
commit 9ff249c
Showing
11 changed files
with
2,211 additions
and
1,835 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.