Re: Paste rows patch - Mailing list pgadmin-hackers

From Dave Page
Subject Re: Paste rows patch
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E40138802F@ratbert.vale-housing.co.uk
Whole thread Raw
In response to Paste rows patch  ("Edward Di Geronimo Jr." <edigeronimo@xtracards.com>)
Responses Re: Paste rows patch  ("Edward Di Geronimo Jr." <edigeronimo@xtracards.com>)
List pgadmin-hackers

> -----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.

pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r5141 - in trunk/pgadmin3: . src/agent src/base src/db src/dlg src/frm src/include src/include/base src/schema src/slony src/utils xtra/pgagent xtra/pgagent/include
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r5142 - in trunk/pgadmin3: docs/en_US src/frm src/include