Re: BUG #4407: Bug in PQexecPrepared when using an integer primary key that does not start at 1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Kevin Jenkins" <gameprogrammer(at)rakkar(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4407: Bug in PQexecPrepared when using an integer primary key that does not start at 1
Date: 2008-09-07 14:49:36
Message-ID: 13634.1220798976@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Kevin Jenkins" <gameprogrammer(at)rakkar(dot)org> writes:
> Description: Bug in PQexecPrepared when using an integer primary key
> that does not start at 1

I'd say this is pilot error, most likely in the form of putting
parameter values into the wrong elements of the parameter arrays
passed to PQexecPrepared. (Remember the zero'th element of those
arrays corresponds to parameter symbol $1.)

Even if I thought it was a real bug, it's impossible to investigate
without a far more complete test case than you've provided. You
haven't shown us any client-side code.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message prasana venkatesh 2008-09-07 16:26:37 BUG #4409: postmaster service is stopped
Previous Message Tom Lane 2008-09-07 14:40:14 Re: PG 8.3.3 - ERROR: lock AccessShareLock on object 16385/16467/0 is already held