kopia lustrzana https://github.com/micropython/micropython-lib
sqlite3: Change return type of column_double from "f" to "d".
ffi now works properly with double return type, so this function can return the correct type. Can confirm that sqlite3_column_double now works correctly on 32-bit and 64-bit x86.pull/7/head
rodzic
bc1ea4fc21
commit
f2cb007ce5
|
@ -24,7 +24,7 @@ sqlite3_column_count = sq3.func("i", "sqlite3_column_count", "p")
|
|||
sqlite3_column_type = sq3.func("i", "sqlite3_column_type", "pi")
|
||||
sqlite3_column_int = sq3.func("i", "sqlite3_column_int", "pi")
|
||||
# using "d" return type gives wrong results
|
||||
sqlite3_column_double = sq3.func("f", "sqlite3_column_double", "pi")
|
||||
sqlite3_column_double = sq3.func("d", "sqlite3_column_double", "pi")
|
||||
sqlite3_column_text = sq3.func("s", "sqlite3_column_text", "pi")
|
||||
#sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
|
||||
# TODO: should return long int
|
||||
|
|
Ładowanie…
Reference in New Issue