summaryrefslogtreecommitdiff
path: root/templates/mod
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-09 19:59:25 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-09 19:59:25 +1000
commit2fae55c0942f5cb192e5f1caaf57f419a245a3fb (patch)
tree08628fb53c812ecedcfacaf813d371671920b9b7 /templates/mod
parent4ec50aad801e867a008de92b58d8df98f9d8e2b7 (diff)
debug/sql: show "NULL" for null columns
Diffstat (limited to 'templates/mod')
-rw-r--r--templates/mod/debug/sql.html8
1 files changed, 7 insertions, 1 deletions
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 %}
<tr>
{% for col in row %}
- <td>{{ col | e }}</td>
+ <td>
+ {% if col != null %}
+ {{ col | e }}
+ {% else %}
+ <em>NULL</em>
+ {% endif %}
+ </td>
{% endfor %}
</tr>
{% endfor %}