You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the same error on a big aggregation query that also uses a GROUP BY statement (version 0.8.2). If I remove the GROUP BY there are no issues.
It seems like it incorrectly infers the type of the column to be NULL which is not supported by the compile-time verifier, as demonstrated by the following example:
use sqlx::SqliteConnection;letmut conn = SqliteConnection::connect("sqlite::memory:").await.unwrap();let res = sqlx::query!("SELECT NULL").fetch_one(&mut conn).await.unwrap();// unsupported type NULL of column #1 ("NULL")
Bug Description
sqlx::query_file!("src/queries/leaderboard.sql")
this has error:the leaderboard.sql in question is:
but this error does not happen on my friend's pc.
Minimal Reproduction
https://github.com/tmvkrpxl0/sqlx-report
I used sqlx-cli to setup database like this:
Then ran
cargo build
and got the same errorInfo
rustc --version
: rustc 1.81.0The text was updated successfully, but these errors were encountered: