From 2fae55c0942f5cb192e5f1caaf57f419a245a3fb Mon Sep 17 00:00:00 2001 From: Michael Foster Date: Mon, 9 Sep 2013 19:59:25 +1000 Subject: [PATCH] debug/sql: show "NULL" for null columns --- templates/mod/debug/sql.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/mod/debug/sql.html b/templates/mod/debug/sql.html index 755995f9..249d05e3 100644 --- a/templates/mod/debug/sql.html +++ b/templates/mod/debug/sql.html @@ -16,7 +16,13 @@ {% for row in result %} {% for col in row %} - {{ col | e }} + + {% if col != null %} + {{ col | e }} + {% else %} + NULL + {% endif %} + {% endfor %} {% endfor %}