Hi,
PFA patch to extract the common code from query tool to handle ajax errors
& connection handling, Also added unit tests around extracted code.
--
Regards,
Murtuza Zabuawala
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company