Re: psqlexception syntax error at or near "$" - Mailing list pgsql-jdbc

From Kevin Grittner
Subject Re: psqlexception syntax error at or near "$"
Date
Msg-id 4CD90BFE020000250003744E@gw.wicourts.gov
Whole thread Raw
In response to psqlexception syntax error at or near "$"  (Steven Dahlin <pgdb.sldahlin@gmail.com>)
List pgsql-jdbc
Steven Dahlin <pgdb.sldahlin@gmail.com> wrote:

> CREATE OR REPLACE FUNCTION system_info_fnc01() RETURNS trigger AS
> $$

>      raise exception ''System Info record already present'';

> $$

When you use dollar quoting you should not double your apostrophes.

Try:

     raise exception 'System Info record already present';

-Kevin

pgsql-jdbc by date:

Previous
From: Steven Dahlin
Date:
Subject: psqlexception syntax error at or near "$"
Next
From: "Kevin Grittner"
Date:
Subject: Re: psqlexception syntax error at or near "$"