-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
sql: support attribute notation for single-param functions (x.f equivalent to f(x)) #47477
Comments
It looks like this is some special syntax that allows interpreting AFAICT it is always equivalent to use I would push back against implementing this unless the workaround I mentioned doesn't work or we have a strong reason to support existing code that does this. |
This section of the Postgres docs covers the behavior that Radu describes: https://www.postgresql.org/docs/12/rowtypes.html#ROWTYPES-USAGE I'll rename the issue to make it clear it's more of a syntax thing, and not actually a new column. And some other relevant reading: |
@vy-ton I'm moving to the backlog, but if ActiveRecord is a high priority for 22.2, then let me know so I can reprioritize this. |
We have marked this issue as stale because it has been inactive for |
This came up during development of the ActiveRecord adapter for CockroachDB. Part of the tool relies on this Postgres behavior. (It's not critical to functionality, but just means some queries may not work.)
In CockroachDB, the above results in
ERROR: column "tab.count" does not exist
Here is the ActiveRecord test
Jira issue: CRDB-4406
The text was updated successfully, but these errors were encountered: