File tree 1 file changed +4
-2
lines changed
diesel/src/sqlite/connection
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,14 @@ impl Statement {
93
93
bytes. len ( ) as libc:: c_int ,
94
94
ffi:: SQLITE_STATIC ( ) ,
95
95
) ,
96
- ( SqliteType :: Double , SqliteBindValue :: F64 ( value) ) => ffi:: sqlite3_bind_double (
96
+ ( SqliteType :: Float , SqliteBindValue :: F64 ( value) )
97
+ | ( SqliteType :: Double , SqliteBindValue :: F64 ( value) ) => ffi:: sqlite3_bind_double (
97
98
self . inner_statement . as_ptr ( ) ,
98
99
bind_index,
99
100
* value as libc:: c_double ,
100
101
) ,
101
- ( SqliteType :: Integer , SqliteBindValue :: I32 ( value) ) => {
102
+ ( SqliteType :: SmallInt , SqliteBindValue :: I32 ( value) )
103
+ | ( SqliteType :: Integer , SqliteBindValue :: I32 ( value) ) => {
102
104
ffi:: sqlite3_bind_int ( self . inner_statement . as_ptr ( ) , bind_index, * value)
103
105
}
104
106
( SqliteType :: Long , SqliteBindValue :: I64 ( value) ) => {
You can’t perform that action at this time.
0 commit comments