debug/sql: show "NULL" for null columns

This commit is contained in:
Michael Foster 2013-09-09 19:59:25 +10:00
parent 4ec50aad80
commit 2fae55c094

View File

@ -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 %}