-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
query! and query_as! macros with postgres no work #2587
Comments
What is the output of |
Currently running into the same issue. Output of the explain query
|
Sure, i have this output [
{
"Plan": {
"Node Type": "Result",
"Parallel Aware": false,
"Async Capable": false,
"Startup Cost": 0.00,
"Total Cost": 0.01,
"Plan Rows": 1,
"Plan Width": 4,
"Output": ["1"]
},
"Query Identifier": 1147616880456321454
}
] |
@mehcode Please note that using |
We're also hitting this after upgrading to 0.7. It's very strange because seemingly arbitrary changes to the query will make it either happen or not. This is the smallest I've been able to reduce the query to while still having it happen: SELECT
u.email,
u.employee_id,
f.id,
nt.token
FROM users u
LEFT JOIN files f
ON u.id = f.user_id
LEFT JOIN nfc_tokens nt
ON u.id = nt.user_id
ORDER BY u.created_at ASC
Removing any of the selected columns or the
|
FWIW, I have this same issue in the following query: select distinct on(project_id) project_id from projects; Removing the I'm able to work around it, but it is an unfortunate oddity that had no real way to debug until I removed it on a hunch. Seems like something in the macro changed? This was fine in Also worth noting that this does not happen when I compile locally on macOS, but when I moved to a Linux box and compile it, the issue comes up. The environments are otherwise the same (cargo, postgres version, etc). |
same thing here, going back to 0.6.3 for now |
This seems to be related to #2626 |
I do not have |
I think that fix introduced in #2626 should solve it for both |
I also had this problem, had to revert back to 6 for now |
Also seeing this |
closed by #2670. |
Any plan for when we'll get a release covering this? I am blocked from update to 7.x on this. |
Is there a release schedule planned that would include this? |
Release 7.0.2 fixes this |
Bug Description
I try use query! and query_as! and cant compile my project
Minimal Reproduction
Info
rustc --version
: "rustc 1.70.0 (90c541806 2023-05-31)"The text was updated successfully, but these errors were encountered: