pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gifford Hesketh <gifford.hesketh@gmail.com>
To: pgsql-sql@postgresql.org
Subject: "copy from" in "create function"
Date: Wed, 20 Oct 2004 15:03:22 -0700
Message-ID: <4f6940a604102015034e5560bb@mail.gmail.com> (raw)

Am I forgetting some limitation ?  I get "ERROR:  syntax error at or
near "$1" at character 22" with this:

CREATE FUNCTION public.fn_b_import( text ) RETURNS void AS 
'
COPY b_import FROM $1 ;
'
LANGUAGE 'sql' STABLE;



view thread (2+ messages)  latest in thread

Message-ID: <4f6940a604102015034e5560bb@mail.gmail.com>
Permalink:  ../4f6940a604102015034e5560bb@mail.gmail.com/
Also on:    postgresql.org/message-id/4f6940a604102015034e5560bb@mail.gmail.com

 · 

reply

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: gifford.hesketh@gmail.com
  Subject: Re: "copy from" in "create function"
  In-Reply-To: <4f6940a604102015034e5560bb@mail.gmail.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