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
Unable to insert when passing value by reference to another function #7
Comments
However, this works (given
|
I believe this is working as designed. The query depends on the You can solve this by moving example into your |
You mean the query has the lifetime of pool? |
Because raw query works, e.g. this compiles ok:
I still pass the id by reference but compiler is happy. Am I missing something obvious? |
Not exactly. In your function,
In your second post, you manually do the binding, thus the binding happens synchronously, and the problem goes away. |
Thanks for the details! |
Code:
Error:
The text was updated successfully, but these errors were encountered: