Re: current_database()

From: Rod Taylor <rbt(at)zort(dot)ca>
To:
Cc: PostgreSQL Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: current_database()
Date: 2002-08-07 13:15:41
Message-ID: 1028726143.12474.0.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Wed, 2002-08-07 at 00:10, Tom Lane wrote:
> Rod Taylor <rbt(at)zort(dot)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 Content-Type Size
current_database.patch text/plain 2.4 KB

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2002-08-07 13:52:05 Re: timed PgConnection::Connect
Previous Message Tatsuo Ishii 2002-08-07 12:56:08 Re: SQL99 CONVERT() function