Re: insert rule doesn't see id field

From: Ron Peterson <rpeterso(at)mtholyoke(dot)edu>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: insert rule doesn't see id field
Date: 2003-01-10 02:07:07
Message-ID: 20030110020707.GA9048@mtholyoke.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches pgsql-sql

On Thu, Jan 09, 2003 at 04:50:56PM -0500, Ron Peterson wrote:

> colindices = (int *) malloc (ncols * sizeof (int));

Of course we should verify that malloc succeeded...

if (colindices == NULL) {
elog (ERROR, "noupcol: malloc failed\n");
SPI_finish();
return PointerGetDatum (NULL);
}

--
Ron Peterson -o)
Network & Systems Manager /\\
Mount Holyoke College _\_v
http://www.mtholyoke.edu/~rpeterso ----

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2003-01-10 02:23:24 Re: more adequate usage msg: pg_controldata.diff
Previous Message Serguei Mokhov 2003-01-10 00:51:18 Re: more adequate usage msg: pg_controldata.diff

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-01-10 04:53:42 Re: insert rule doesn't see id field
Previous Message Bruno Wolff III 2003-01-10 01:25:15 Re: Getting sequence value after inserting many rows at a time