Skip to content

Conversation

masatake
Copy link
Member

@masatake masatake commented Oct 2, 2021

Close #3169.

Some? dialects support shell-like variable substitution.
HiveQL is one of such dialects.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+VariableSubstitution

With this change, the SQL parser accepts '${var}' as a part of an identifier.

TODO: var itself can be extracted as a reference tag.
Signed-off-by: Masatake YAMATO [email protected]

@masatake masatake force-pushed the sql--var-subst branch 3 times, most recently from 1c961c6 to 1c9086b Compare October 3, 2021 22:04
Close universal-ctags#3169.

Some(?) dialects support shell-like variable substitution.
HiveQL is one of such dialects.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+VariableSubstitution

With this change, the SQL parser accepts '${var}' as a part of an identifier.

TODO: `var` itself can be extracted as a reference tag.
Signed-off-by: Masatake YAMATO <[email protected]>
@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #3172 (2a2e24c) into master (c31d572) will increase coverage by 0.00%.
The diff coverage is 90.24%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3172   +/-   ##
=======================================
  Coverage   84.90%   84.90%           
=======================================
  Files         200      200           
  Lines       47874    47908   +34     
=======================================
+ Hits        40648    40678   +30     
- Misses       7226     7230    +4     
Impacted Files Coverage Δ
parsers/sql.c 73.30% <90.24%> (+0.49%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c31d572...2a2e24c. Read the comment docs.

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.

SQL: placeholder in identifier

1 participant