Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SELECT unable to use * when using JOIN on MSSQL #25

Open
saklanipankaj opened this issue Jun 27, 2019 · 1 comment
Open

SELECT unable to use * when using JOIN on MSSQL #25

saklanipankaj opened this issue Jun 27, 2019 · 1 comment
Labels

Comments

@saklanipankaj
Copy link

saklanipankaj commented Jun 27, 2019

SELECT *
FROM t1
JOIN t2 ON t1.a = t2.a
JOIN t3 ON t1.a = t3.a;

HResult 0x4E21, Level 16, State 1
One or more errors occurred. (Input string was not in a correct format.)

SELECT t1.a, t2.a, t3.b
FROM t1
JOIN t2 ON t1.a = t2.a
JOIN t3 ON t1.a = t3.a;

a a b


              12                   12                    1
              12                   12                    1
              12                   12                    1
              12                   12                    1
              12                   12                    1
              12                   12                    1

(6 rows affected)

Error is returned when (*) is used in the SELECT statement with a JOIN, however, it is not present when columns are specified. This holds true for using JOIN on 1 or 2 different tables.

@saklanipankaj saklanipankaj changed the title Incorrect Error Messages when exceeding number of computations in SELECT Statement MSSQL SELECT unable to use * when using JOIN Jun 27, 2019
@saklanipankaj saklanipankaj changed the title SELECT unable to use * when using JOIN SELECT unable to use * when using JOIN on MSSQL Jun 27, 2019
@cheziyi
Copy link
Member

cheziyi commented Jun 28, 2019

Will investigate.

@cheziyi cheziyi added the bug label Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants