Paste rows rough patch - Mailing list pgadmin-hackers

From Edward Di Geronimo Jr.
Subject Paste rows rough patch
Date
Msg-id 20060502012606.6u8464mor0e8o08w@webmail.picoip.com
Whole thread Raw
List pgadmin-hackers
Attached is a rough patch to allow pasting of rows into the edit grid.
It's not intended to be a final solution, but rather enough to start
some discussion.

This patch is rather simple - it always deliminates columns by tabs,
and stops if it hits a new line. It pastes data starting at the first
column of the row the cursor is on. Right now it doesn't pay any
attention to the column details, so it will gladly insert data into
serial columns or whatever.

I figure the proper solution should probably be to obey the copy
settings for deliminating columns.

As to things like serial & oid columns, how does everyone feel about
that? Maybe we could add an option to paste values in, skip the
columns, or prompt?

Any other thoughts on how this should work?

Ed

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Attachment

pgadmin-hackers by date:

Previous
From: "Edward Di Geronimo Jr."
Date:
Subject: Re: Updated copy patch
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r5108 - in branches/REL-1_4_0_PATCHES/pgadmin3: . src/frm