Problem executing PgSqlScript for creating postgres sql function
Posted: Sun 08 Nov 2015 18:57
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.
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.