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 * vs select this #3641

Open
jangorecki opened this issue Oct 9, 2023 · 0 comments
Open

select * vs select this #3641

jangorecki opened this issue Oct 9, 2023 · 0 comments

Comments

@jangorecki
Copy link
Contributor

What's up?

There seems to be some inconsistency

This one works

from invoices
select invoices.*

all the others all failing

from invoices
select *
from invoices
select this.*
from invoices
select this

Based on how this is being used in other places, I would suggest that all three other forms could work as well.

Alternatively this could be more strictly defined, as sometimes it is alias for * (count this) and sometimes for a table name (join this). This is documented now and seems fine, but then all three forms above could be working then.

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

No branches or pull requests

1 participant