Detecting NULL Query Result Values
#1

Hi,

I have noticed that if I use the 'db_get_field' function and the field of my result set which I am trying to get contains a NULL value, then the use of the 'db_get_field' function will crash my server. Apparently you cannot get a field which contains a NULL value.

So, does anyone know of any way that I can detect if a field (or even an entire result set) has a NULL value present without using a plugin that goes beyond SQLite? My case is such that the result set may or may not contain a NULL value and I do not always know if it will or not.
Reply
#2

Better use default values for columns, so they won't be NULL.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)