Catch errors when trying to EXPLAIN an invalid query. Fixes #3257

This commit is contained in:
Murtuza Zabuawala authored and Dave Page committed 2018-04-12 10:50:57 +01:00
1 parent 79edf40141
commit c08adb5567
6 files changed
+40 -48

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ for it.
.. toctree:: .. toctree::
release_notes_3_1
release_notes_3_0 release_notes_3_0
release_notes_2_1 release_notes_2_1
release_notes_2_0 release_notes_2_0
+17
View File
@@ -0,0 +1,17 @@
***********
Version 3.1
***********
Release date: 2018-??-??
This release contains a number of features and fixes reported since the release of pgAdmin4 3.0
Features
********
Bug fixes
*********
| `Bug #3257 <https://redmine.postgresql.org/issues/3257>`_ - Catch errors when trying to EXPLAIN an invalid query
@@ -1,23 +1,15 @@
EXPLAIN ( EXPLAIN ({% if format -%}
{% if format %}
FORMAT {{ format.upper() }}, FORMAT {{ format.upper() }},
{% endif %} {%- endif %}{% if analyze is defined -%}
{% if analyze is defined %}
ANALYZE {{ analyze }}, ANALYZE {{ analyze }},
{% endif %} {%- endif %}{% if verbose is defined -%}
{% if verbose is defined %}
VERBOSE {{ verbose }}, VERBOSE {{ verbose }},
{% endif %} {%- endif %}{% if costs is defined -%}
{% if costs is defined %}
COSTS {{ costs }}, COSTS {{ costs }},
{% endif %} {%- endif %}{% if timing is defined -%}
{% if timing is defined %}
TIMING {{ timing }}, TIMING {{ timing }},
{% endif %} {%- endif %}{% if summary is defined -%}
{% if summary is defined %}
SUMMARY {{ summary }}, SUMMARY {{ summary }},
{% endif %} {%- endif %}{% if buffers is defined -%}
{% if buffers is defined %}
BUFFERS {{ buffers }} BUFFERS {{ buffers }}
{% endif %} {%- endif %}) {{ sql }}
) {{ sql }}
@@ -1,20 +1,13 @@
EXPLAIN ( EXPLAIN ({% if format -%}
{% if format %}
FORMAT {{ format.upper() }}, FORMAT {{ format.upper() }},
{% endif %} {%- endif %}{% if analyze is defined -%}
{% if analyze is defined %}
ANALYZE {{ analyze }}, ANALYZE {{ analyze }},
{% endif %} {%- endif %}{% if verbose is defined -%}
{% if verbose is defined %}
VERBOSE {{ verbose }}, VERBOSE {{ verbose }},
{% endif %} {%- endif %}{% if costs is defined -%}
{% if costs is defined %}
COSTS {{ costs }}, COSTS {{ costs }},
{% endif %} {%- endif %}{% if timing is defined -%}
{% if timing is defined %}
TIMING {{ timing }}, TIMING {{ timing }},
{% endif %} {%- endif %}{% if buffers is defined -%}
{% if buffers is defined %}
BUFFERS {{ buffers }} BUFFERS {{ buffers }}
{% endif %} {%- endif %}) {{ sql }}
) {{ sql }}
@@ -1,17 +1,10 @@
EXPLAIN ( EXPLAIN ({% if format -%}
{% if format %}
FORMAT {{ format.upper() }}, FORMAT {{ format.upper() }},
{% endif %} {%- endif %}{% if analyze is defined -%}
{% if analyze is defined %} ANALYZE {{ analyze }},{%- endif %}{% if verbose is defined -%}
ANALYZE {{ analyze }},
{% endif %}
{% if verbose is defined %}
VERBOSE {{ verbose }}, VERBOSE {{ verbose }},
{% endif %} {%- endif %}{% if costs is defined -%}
{% if costs is defined %}
COSTS {{ costs }}, COSTS {{ costs }},
{% endif %} {%- endif %}{% if buffers is defined -%}
{% if buffers is defined %}
BUFFERS {{ buffers }} BUFFERS {{ buffers }}
{% endif %} {%- endif %}) {{ sql }}
) {{ sql }}
@@ -1,5 +1 @@
EXPLAIN EXPLAIN {% if analyze %}ANALYZE {% endif %}{{ sql }}
{% if analyze %}
ANALYZE
{% endif %}
{{ sql }}