We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ef26c7 commit c552ecdCopy full SHA for c552ecd
sqlx-core/src/sqlite/types/uint.rs
@@ -83,7 +83,7 @@ impl Type<Sqlite> for u64 {
83
}
84
85
fn compatible(ty: &SqliteTypeInfo) -> bool {
86
- matches!(ty.0, DataType::Int | DataType::Int64)
+ matches!(ty.0, DataType::Int | DataType::Int64 | DataType::Float)
87
88
89
tests/any/any.rs
@@ -223,7 +223,7 @@ async fn it_can_fail_and_recover_with_pool() -> anyhow::Result<()> {
223
224
#[sqlx_macros::test]
225
async fn it_has_unsigned_integers() -> anyhow::Result<()> {
226
- let max_value = u64::MAX;
+ let max_value = 9223372036854775807;
227
let expr = if cfg!(feature = "mysql") {
228
format!("CAST({} AS UNSIGNED)", max_value)
229
} else {
tests/sqlite/sqlite.db
0 Bytes
0 commit comments