Page 1 of 1

Unterminated dollar quoted string

Posted: Thu 13 Feb 2014 14:48
by a_balazs
Hello all,
My problem is that if I write an inline function in postgres, and try to execute in pgscript, I get the "unterminated dollar qouted string" exception:

Code: Select all

do
$tmp$
begin
if not exists(select setting_num from main.system_settings where setting_name='download_rates_mnb') then
 insert into main.system_settings(setting_name,setting_num,setting_display) values ('download_rates_mnb',1,'SOAP');
end if;
end
$tmp$
language plpgsql;
Any idea?

Re: Unterminated dollar quoted string

Posted: Fri 14 Feb 2014 12:54
by MariiaI
Thank you for the report. We have reproduced this issue. We will investigate it and inform you about the results as soon as any are available.
As a workaround, please execute your function via PgSqlCommand instead of PgSqlScript.

Re: Unterminated dollar quoted string

Posted: Wed 19 Feb 2014 08:08
by MariiaI
The bug with executing anonymous code blocks in PgSqlScript is fixed.
New build of dotConnect for PostgreSQL 7.2.103 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 active subscription only).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=3&t=28965.

Re: Unterminated dollar quoted string

Posted: Sat 22 Feb 2014 09:31
by a_balazs
Thank you