-
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_as returning Option<T> when using 'returning' syntax on sqlite #2407
Comments
After some digging, it seems that sqlx/sqlx-core/src/sqlite/connection/explain.rs Lines 572 to 575 in ef17af3
I can see from the
In particular, register 3 is explicitly checked with |
Bug Description
Variables bound using
query_as
, are being returned as anOption<T>
, leading to type errors. Inserting the variable directly into the query returns aT
. No type errors.Minimal Reproduction
bad:
ok:
Info
rustc --version
: 1.68.0The text was updated successfully, but these errors were encountered: