Hello, all
It has been nine years since this bug was reported here in thread titlded declaring functions in PostgreSQL (I am not allowed to use links), but it is still unfixed: HeidiSQL 12.10.0.7000 (circa 2025) cannot handle Postgres dollar-quoted strings. For example, the following perfectly legitimate anonymous block:
DO $$ begin commit; end $$;
works in psql—the native Postgres client,
as well as in other third-party GUI clients,
e.g. DBeaver,
but HeidiSQL* fails to execute it,
complaining about an unterminated $-string.
Observe that PostgreSQL supports sever-side parsing,
so that the client may send the whole text as is.
See the documentation to PQgetResult,
to which I should like to post a link
but the forum won't let me.
