Paste bug in Query Tool - Mailing list pgadmin-hackers

From Magnus Hagander
Subject Paste bug in Query Tool
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7E38@algol.sollentuna.se
Whole thread Raw
List pgadmin-hackers
Hi!

When you paste a multiline query in the query tool, where any line
*except* the last one is very long, the scrollbar doesn't resize, thus
making it impossible to scroll the whole query into view. A workaround
is to click this row and press "end", or to manually move out to the end
of it, in which case the scrollbar resizes. This is also what happens if
you paste a long single-line query - since the cursor is placed at the
end of the long line automatically.

Example query (no linebreaks except when specified as a different line)
<first line>
select * from foo where bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1 and bar=1
and bar=1
<second line>
and foo=2 and foo=2
<end of second line>

The query has to be long enough so the scrollbar would require resizing.


I guess this might be an actual bug in the wx control, but perehaps
there's some kind of workaround we can apply automatically? (Or if the
bug is in pgAdmin, it can hopefully be fixed :P)

//Magnus

pgadmin-hackers by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Copy quoting
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4884 - in trunk/pgadmin3: . docs/en_US src src/frm src/include