Ensure primary key column names are quoted in View Data mode of the Query Tool. Fixes #2208

This commit is contained in:
Dave Page 2017-02-24 13:58:23 +00:00
parent 40ff651ef3
commit b19081421b

View File

@ -4,7 +4,7 @@ SELECT * FROM {{ conn|qtIdent(nsp_name, object_name) }}
WHERE {{ sql_filter }} WHERE {{ sql_filter }}
{% endif %} {% endif %}
{% if primary_keys %} {% if primary_keys %}
ORDER BY {% for p in primary_keys %}{{p}}{% if cmd_type == 1 or cmd_type == 3 %} ASC{% elif cmd_type == 2 %} DESC{% endif %} ORDER BY {% for p in primary_keys %}{{conn|qtIdent(p)}}{% if cmd_type == 1 or cmd_type == 3 %} ASC{% elif cmd_type == 2 %} DESC{% endif %}
{% if not loop.last %}, {% else %} {% endif %}{% endfor %} {% if not loop.last %}, {% else %} {% endif %}{% endfor %}
{% endif %} {% endif %}
{% if limit > 0 %} {% if limit > 0 %}