diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-09 19:59:25 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-09 19:59:25 +1000 |
| commit | 2fae55c0942f5cb192e5f1caaf57f419a245a3fb (patch) | |
| tree | 08628fb53c812ecedcfacaf813d371671920b9b7 | |
| parent | 4ec50aad801e867a008de92b58d8df98f9d8e2b7 (diff) | |
debug/sql: show "NULL" for null columns
| -rw-r--r-- | templates/mod/debug/sql.html | 8 |
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 %} |
