Re: psqlexception syntax error at or near "$"

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Steven Dahlin" <pgdb(dot)sldahlin(at)gmail(dot)com>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: psqlexception syntax error at or near "$"
Date: 2010-11-09 14:53:18
Message-ID: 4CD90BFE020000250003744E@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Steven Dahlin <pgdb(dot)sldahlin(at)gmail(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kevin Grittner 2010-11-09 18:17:04 Re: [JDBC] psqlexception syntax error at or near "$"
Previous Message Steven Dahlin 2010-11-09 14:37:36 psqlexception syntax error at or near "$"