Re: Paste rows patch

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Edward Di Geronimo Jr(dot)" <edigeronimo(at)xtracards(dot)com>, <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Paste rows patch
Date: 2006-05-10 08:39:27
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E40138802F@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

> -----Original Message-----
> From: pgadmin-hackers-owner(at)postgresql(dot)org
> [mailto:pgadmin-hackers-owner(at)postgresql(dot)org] On Behalf Of
> Edward Di Geronimo Jr.
> Sent: 10 May 2006 00:43
> To: pgadmin-hackers(at)postgresql(dot)org
> Subject: Re: [pgadmin-hackers] Paste rows patch
>
> Quoting Dave Page <dpage(at)vale-housing(dot)co(dot)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.

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2006-05-10 11:09:36 SVN Commit by dpage: r5142 - in trunk/pgadmin3: docs/en_US src/frm src/include
Previous Message svn 2006-05-10 08:20:48 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