Boost logo

Boost :

From: Jonathan Wakely (cow_at_[hidden])
Date: 2005-08-18 04:40:11

Jonathan Wakely wrote:

> How do you handle NULL values? the postgresql::row_set_imp::get() function
> doesn't seem to account for NULL, which would crash strlen(), atof() etc.

I see from the docs that PQgetvalue() never returns a NULL char*. Does
that mean some way of distinguishing empty strings from NULL fields is
needed? i.e. a wrapper for PQgetisnull.


Boost list run by bdawes at, gregod at, cpdaniel at, john at