-
Notifications
You must be signed in to change notification settings - Fork 1.4k
unsupported type NULL
error only on my machine
#3546
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
Comments
I am getting the same error on a big aggregation query that also uses a It seems like it incorrectly infers the type of the column to be use sqlx::SqliteConnection;
let mut 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") |
I'm having the same error, seemly triggered by the user of SELECT i.status, COUNT(l.liker) as likes
FROM ips i
LEFT OUTER JOIN likes l
ON i.ip = l.target
WHERE ip = ?
GROUP BY i.status Works fine in 0.7.4 |
I get the same error on 0.8.3 with this query: SELECT 1 AS present
FROM owners
WHERE user_id = ? AND project_id = ?
LIMIT 1 It worked without any problems in 0.7.4. Changing it to The relevant tables are defined like this:
|
I was able to simplify the original query, while still reproducing the original bug. select
`user`
from
`vc_activities` It look to me like the column type 'String' isn't recognized as a valid column type name.
|
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: