Skip to content

Commit f2cb007

Browse files
committed
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.
1 parent bc1ea4f commit f2cb007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlite3/sqlite3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
sqlite3_column_type = sq3.func("i", "sqlite3_column_type", "pi")
2525
sqlite3_column_int = sq3.func("i", "sqlite3_column_int", "pi")
2626
# using "d" return type gives wrong results
27-
sqlite3_column_double = sq3.func("f", "sqlite3_column_double", "pi")
27+
sqlite3_column_double = sq3.func("d", "sqlite3_column_double", "pi")
2828
sqlite3_column_text = sq3.func("s", "sqlite3_column_text", "pi")
2929
#sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
3030
# TODO: should return long int

0 commit comments

Comments
 (0)