From 20c55fdf87d8887c4922aa8915449715b98d37e3 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 29 Sep 2008 08:25:06 +0200 Subject: Quick-fix for MySQL NULL values. --- lib/SQL.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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"; } } -- cgit v1.2.3