Stalsy
2 years agoContributor
How can I interrupt a JDBC query
I am using JDBC as datasource queries and usually return a limited number of rows (say customer IDs) for testing. In a couple of cases, after editing a query and re-running the test, I found that I accidentally commented out the limiting clause (say in DB2: Order by rand() fetch first 400 rows only) of my first CTE so the query is selecting every single customerId in the database and it takes forever to return any results! Is there a way in ReadyAPI (I'm using Ver 3.45.0) to somehow close the connection and interrupt the query, or stop/cancel the test? I've been closing ReadyAPI but this seems to be a bit extreme...