Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

SqlScriptGenerator does not account for BinaryQueryExpressions

Open
#22 3 comments 0 reactions 1 assignee View on GitHub

@ssreerama is already working on this.

Since Jan 4, 2022.

Assessment

This issue has not been assessed yet.

Description

enhancement

When I parse a query which has a UNION statement, I get a SelectStatement with a QueryExpression that is a BinaryQueryExpression. However, when I try to use the SqlScriptGenerator to regenerate the SQL from the object tree, it stops at the FirstExpression + BinaryQueryExpressionType.

eg. => SELECT x FROM FOO UNION SELECT x FROM BAR turns into SELECT x FROM FOO UNION

Dominant language
GAP
Stars
277
Forks
43
Avg merge
6d 17h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/SqlScriptDOM

All issues in microsoft/SqlScriptDOM

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.