Fix freeze of UI when querytool has an error on a query
We call too many times the GetCharAt() and the GetText().Length() methods.
This fix calls GetCharAt() once per loop (instead of five times per loop), and
GetText().Length() once only (instead of once per loop). My testing shows no
freeze at all with a 4000 lines of SQL code.
Report per Evan Martin.
Branch
------
REL-1_16_0_PATCHES
Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=05803e4b89913c7634ff62ff6b1122fb84102eaf
Modified Files
--------------
pgadmin/frm/frmQuery.cpp | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)