From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Steven Dahlin <pgdb.sldahlin@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: psqlexception syntax error at or near "$"
Date: Tue, 09 Nov 2010 08:53:18 -0600
Message-ID: <4CD90BFE020000250003744E@gw.wicourts.gov> (raw)
In-Reply-To: <AANLkTikYP447Gt9hBRS0eY5_JCir0uWePV_sTd7rY8ea@mail.gmail.com>
References: <AANLkTikYP447Gt9hBRS0eY5_JCir0uWePV_sTd7rY8ea@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, pgdb.sldahlin@gmail.com
Subject: Re: psqlexception syntax error at or near "$"
In-Reply-To: <4CD90BFE020000250003744E@gw.wicourts.gov>
References: <AANLkTikYP447Gt9hBRS0eY5_JCir0uWePV_sTd7rY8ea@mail.gmail.com> <4CD90BFE020000250003744E@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox