mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure primary key column names are quoted in View Data mode of the Query Tool. Fixes #2208
This commit is contained in:
parent
40ff651ef3
commit
b19081421b
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user