forked from leftypol/leftypol
debug/sql: show "NULL" for null columns
This commit is contained in:
parent
4ec50aad80
commit
2fae55c094
1 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,13 @@
|
||||||
{% for row in result %}
|
{% for row in result %}
|
||||||
<tr>
|
<tr>
|
||||||
{% for col in row %}
|
{% for col in row %}
|
||||||
<td>{{ col | e }}</td>
|
<td>
|
||||||
|
{% if col != null %}
|
||||||
|
{{ col | e }}
|
||||||
|
{% else %}
|
||||||
|
<em>NULL</em>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue