Re: current_database() - Mailing list pgsql-patches

From Rod Taylor
Subject Re: current_database()
Date
Msg-id 1028726143.12474.0.camel@jester
Whole thread Raw
In response to Re: current_database()  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: current_database()
Re: current_database()
List pgsql-patches
On Wed, 2002-08-07 at 00:10, Tom Lane wrote:
> Rod Taylor <rbt@zort.ca> writes:
> > + Datum
> > + current_database(PG_FUNCTION_ARGS)
> > + {
> > +     PG_RETURN_NAME(DatabaseName);
> >   }
>
> DatabaseName is not actually a NAME, only a C string.  You need a palloc
> and a namestrcpy in there.

Hmm.. Oops.

Attachment

pgsql-patches by date:

Previous
From: "Ulrich Neumann"
Date:
Subject: Patch for NetWare support
Next
From: Tom Lane
Date:
Subject: Re: timed PgConnection::Connect