Page 1 of 1

Problem executing PgSqlScript for creating postgres sql function

Posted: Sun 08 Nov 2015 18:57
by juju
i have a written a short postgres sql function.
this function can you find below:

CREATE FUNCTION "left"(text, integer) RETURNS text
LANGUAGE plpgsql
AS $_$
DECLARE
BEGIN
RETURN substr($1, 1, $2);
END;
$_$;


i used latest dotconnect for postgres
but unfortunately executing of pgsqlscript is not possible because of following error message:

Dollar-Quotes nicht abgeschlossen bei „$_$
DECLARE
BEGIN
RETURN substr($1, 1, $2)

in english:
dollar quotes not terminated !!!!

into program pgadmin i can run this function with out any problems.

Re: Problem executing PgSqlScript for creating postgres sql function

Posted: Mon 09 Nov 2015 13:06
by Pinturiccio
We have reproduced the issue. We will investigate it and post here about the results as soon as possible.

Re: Problem executing PgSqlScript for creating postgres sql function

Posted: Wed 11 Nov 2015 11:10
by Pinturiccio
We have fixed the bug with executing query in PgSqlScript containing function declarations. We will post here when the corresponding build of dotConnect for PostgreSQL is available for download.

Re: Problem executing PgSqlScript for creating postgres sql function

Posted: Wed 11 Nov 2015 23:41
by juju
this sounds great.
i'am waiting for the new version.
many thanks for your support.

Re: Problem executing PgSqlScript for creating postgres sql function

Posted: Fri 13 Nov 2015 09:34
by Pinturiccio
New build of dotConnect for PostgreSQL 7.4.535 is available for download now!
It can be downloaded from http://www.devart.com/dotconnect/postgr ... nload.html (trial version) or from Registered Users' Area (for users with valid subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?t=32775