pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: PostgreSQL Admin <postgres@productivitymedia.com>
Cc: Lista PG-PHP <pgsql-php@postgresql.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] PL/pgSQL and PHP 5
Date: Wed, 09 Aug 2006 23:40:57 -0400
Message-ID: <9830.1155181257@sss.pgh.pa.us> (raw)
In-Reply-To: <44DA9BA3.2020801@productivitymedia.com>
References: <20060731041644.32247.qmail@web56610.mail.re3.yahoo.com>
	<bf05e51c0607302152k2801caflc9040d99af7b2816@mail.gmail.com>
	<7F7548C8-249E-44E2-8205-6C055671DA19@pgedit.com>
	<bf05e51c0607310759m64d39c45n73aa6060c871b46f@mail.gmail.com>
	<44DA9BA3.2020801@productivitymedia.com>

PostgreSQL Admin <postgres@productivitymedia.com> writes:
> CREATE OR REPLACE FUNCTION insert_staff_b
>     (insert_firstname varchar)
> RETURNS VOID AS
> ...
> Still I get this error:
> Warning: pg_query(): Query failed: ERROR: function 
> insert_staff_b(character varying) does not exist

Sure looks like it oughta work.  One possibility is that you created the
function in a schema that isn't part of the application's search path.
Other than that, look for *really* silly errors, like not creating the
function in the same database the application is connected to ...

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <9830.1155181257@sss.pgh.pa.us>
Permalink:  ../9830.1155181257@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9830.1155181257@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, postgres@productivitymedia.com, pgsql-php@postgresql.org
  Subject: Re: [SQL] PL/pgSQL and PHP 5
  In-Reply-To: <9830.1155181257@sss.pgh.pa.us>

* 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