summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/SQL.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SQL.cc b/lib/SQL.cc
index 1f7d6c4..ee205b5 100644
--- a/lib/SQL.cc
+++ b/lib/SQL.cc
@@ -98,7 +98,7 @@ AssocArray SQLConnection::fetchrow() {
if (row) {
for (i = 0; i < nf; i++) {
- r[fields[i].name] = row[i];
+ r[fields[i].name] = row[i] ? row[i] : "NULL";
}
}