
18 Aug
2005
18 Aug
'05
9:40 a.m.
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. jon