I have created a PostgreSQL database. Now I try to work with it in SQL Workbench, but I have a problem with the way it understands statement delimiters. The documentation on alternate delimiters sais that SQL Workbench takes semicolon as the end of statement, which causes problems for functions and similar code blocks with more than one semicolon. That's why there's the 'alternate delimiter' option. However, the default alternate delimiter (/
) makes the code invalid elsewhere - I picked SQL Developer for a workaround and as an alternate front-end, I can't sacrifice pgAdmin for it and I can't afford maintaining two versions of my source code just to avoid this limitation.
I tried to set --/
as the alternate delimiter instead - this disables the default '/', but it doesn't apply - seems that SQL Workbench can't handle multi-char delimiters.
Is there any way how to solve this problem? Is there any char that wouldn't make me trouble in pgAdmin but would be suitable for SQL Workbench alternate delimiter? Or is there any way to enable alternate delimiters consisting of some harmless char sequence?
EDIT: I tried to define the alternate delimiter both at global and connection settings, and with and without the "single line" option, and no success.
GO
. You probably get a better answer if you post that on the SQL Workbench forum (google groups). But as it is a multi DBMS tool I doubt it will ever work 100% the same way as the "native" tools. But in general--/
can't work because--
starts a (single line) comment and thus the whole line will be ignored.