Hi,
I'm using a Poco::Data::RecordSet to retrieve data from a SQLite database.
Is there a way to detect that a column contains NULL?
It seems to me Poco::Data always inserts a default value for NULL data.
Thanks,
Ronny
ses << "CREATE TABLE NullTest (i INTEGER)", now;
ses << "INSERT INTO NullTest VALUES(:i)", use(null), now;
RecordSet rs(ses, "SELECT * FROM NullTest");
rs.moveFirst();
assert (rs.isNull("i"));
assert (rs["i"] == 0);
Users browsing this forum: No registered users and 1 guest