summaryrefslogtreecommitdiff
path: root/lib/SQL.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-09-29 08:25:06 +0200
committerPixel <pixel@nobis-crew.org>2008-09-29 08:25:06 +0200
commit20c55fdf87d8887c4922aa8915449715b98d37e3 (patch)
tree126cbb5732ecbca0e7a6a9b2ff24603360a6e7ed /lib/SQL.cc
parentc24d1aa0df1df41f24d747c96420e17c27dccea4 (diff)
Quick-fix for MySQL NULL values.
Diffstat (limited to 'lib/SQL.cc')
-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";
}
}