]> gitweb.factorcode.org Git - factor.git/commit
db.sqlite: Fix NULL returns for INTEGER columns in sqlite
authorDoug Coleman <doug.coleman@gmail.com>
Fri, 22 Jul 2016 15:19:54 +0000 (08:19 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 22 Jul 2016 15:20:56 +0000 (08:20 -0700)
commit858c9b3a960ba1ba9a6b00339d7678dbdccfc9b9
tree5a8ddbb74155cc87ea2b716f469e4f1599df7e75
parent0e494d31f4f19673936a5da9a667f5b480c39e1c
db.sqlite: Fix NULL returns for INTEGER columns in sqlite

The api for getting integer/double columns from sqlite3 returns a zero, but the value could still be NULL, so an extra api check for the sqlite type is required.

Fixes #1674.
basis/db/sqlite/ffi/ffi.factor
basis/db/sqlite/lib/lib.factor
basis/db/sqlite/sqlite-tests.factor