> -----Original Message-----
> From: pgadmin-hackers-owner@postgresql.org
> [mailto:pgadmin-hackers-owner@postgresql.org] On Behalf Of
> Edward Di Geronimo Jr.
> Sent: 10 May 2006 00:43
> To: pgadmin-hackers@postgresql.org
> Subject: Re: [pgadmin-hackers] Paste rows patch
>
> Quoting Dave Page <dpage@vale-housing.co.uk>:
>
> > We enable/disable the save button on the entry/exit of a cell - see
> > frmEditGrid::OnEditorShown() & frmEDitGrid::OnSave(). Does
> that look
> > robust enough to use to set a flag?
>
> Got a solution. I set a flag in OnEditorShown, and trapped
> the editor hidden event to clear it. Here's a new patch.
Nice - that works. Unfortunately I found another problem - the serial
column doesn't seem to work I suspect because you are looking for
columns that are PGOID_TYPE_SERIAL or PGOID_TYPE_SERIAL8, however they
actually get seen as int4's or int8's I believe. I'm testing with 8.1.3
and a table that looks like:
CREATE TABLE foo
(
id serial NOT NULL,
data1 text,
data2 text,
data3 text,
CONSTRAINT foo_pkey PRIMARY KEY (id)
)
WITH OIDS;
ALTER TABLE foo OWNER TO postgres;
Regards Dave.