Fix Rust type for SQLite REAL (#1785)

REAL is stored as as 8-byte IEEE floating point number
See https://www.sqlite.org/datatype3.html#storage_classes_and_datatypes
This commit is contained in:
Pruthvikar Reddy 2022-04-15 00:05:38 +02:00 committed by GitHub
parent 2e026cae67
commit cc1ab90110
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,13 @@
use sqlx_core as sqlx;
// f32 is not included below as REAL represents a floating point value
// stored as an 8-byte IEEE floating point number
// For more info see: https://www.sqlite.org/datatype3.html#storage_classes_and_datatypes
impl_database_ext! {
sqlx::sqlite::Sqlite {
bool,
i32,
i64,
f32,
f64,
String,
Vec<u8>,