microsoft / SqlScriptDOM

ScriptDOM/SqlDOM is a .NET library for parsing T-SQL statements and interacting with its abstract syntax tree
MIT License
135 stars 18 forks source link

UpdateSpecification.AcceptChildren issue results in out of sequence explicit visit calls #84

Open kenlnetherland opened 4 months ago

kenlnetherland commented 4 months ago

Steps to Reproduce:

  1. Create a visitor inheriting from TSqlFragmentVisitor
  2. Override ExplicitVisit(AssignmentSetClause node)
  3. Override ExplicitVisit(WhereClause node)
  4. Item 2. (AssignmentSetClause) gets invoked "after" Item 3. (WhereClause)
  5. Shouldn't this be reversed?

Did this occur in prior versions? If not - which version(s) did it work in?

(DacFx/SqlPackage/SSMS/Azure Data Studio)