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 848646b commit 40514f6Copy full SHA for 40514f6
diesel/src/sqlite/connection/stmt.rs
@@ -93,12 +93,14 @@ impl Statement {
93
bytes.len() as libc::c_int,
94
ffi::SQLITE_STATIC(),
95
),
96
- (SqliteType::Double, SqliteBindValue::F64(value)) => ffi::sqlite3_bind_double(
+ (SqliteType::Float, SqliteBindValue::F64(value))
97
+ | (SqliteType::Double, SqliteBindValue::F64(value)) => ffi::sqlite3_bind_double(
98
self.inner_statement.as_ptr(),
99
bind_index,
100
*value as libc::c_double,
101
- (SqliteType::Integer, SqliteBindValue::I32(value)) => {
102
+ (SqliteType::SmallInt, SqliteBindValue::I32(value))
103
+ | (SqliteType::Integer, SqliteBindValue::I32(value)) => {
104
ffi::sqlite3_bind_int(self.inner_statement.as_ptr(), bind_index, *value)
105
}
106
(SqliteType::Long, SqliteBindValue::I64(value)) => {
0 commit comments