> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Edward Di Geronimo Jr.
> Sent: 10 May 2006 00:43
> To: [email protected]
> Subject: Re: [pgadmin-hackers] Paste rows patch
> 
> Quoting Dave Page <[email protected]>:
> 
> > 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.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply via email to