From: limr@yahoo.com
To: pgsql-sql@postgresql.org
Subject: Escaping the $1 parameter in stored procedures
Date: 13 Oct 2003 13:18:10 -0700
Message-ID: <75f517f5.0310131218.3a2907e5@posting.google.com> (raw)
I'm running Postgres 7.3.2 in Redhat 9.0.
I'm trying to execute a function below defined as a stored procedure
ALTER TABLE tms_schedule DROP CONSTRAINT "$1";
However, postgres thinks the "$1" is a parameter value. How do I tell
postgres to treat it as a literal $1?
TIA,
Robert
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: limr@yahoo.com
Subject: Re: Escaping the $1 parameter in stored procedures
In-Reply-To: <75f517f5.0310131218.3a2907e5@posting.google.com>
* 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