Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group