Skip to content
Snippets Groups Projects
Commit 8faf16b8 authored by Nikita Pettik's avatar Nikita Pettik Committed by Kirill Yukhin
Browse files

sql: increment VIEW counter for tables within sub-select

VIEW can be created not only in form of AS SELECT but also in form of AS
VALUES (...). In the latter case space's view reference counters were
not incremented. Furthermore, if view came with sub-select, reference
counters of tables within sub-select were not updated as well. These
problems occurred due to simplified traverse over AST: only tables
within FROM clause were accounted. This patch fixes them introducing
complete pass over AST using walker.

Closes #3815
parent 94d30651
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment