diff --git a/pipekit/jrunner.py b/pipekit/jrunner.py index 85c1cdf..5162eae 100644 --- a/pipekit/jrunner.py +++ b/pipekit/jrunner.py @@ -254,10 +254,13 @@ _EXCEPTION_HEADER_RE = re.compile( # jrunner runs query-mode SQL with `executeQuery`, which requires the # statement to produce a ResultSet. DDL/DML (CREATE, TRUNCATE, INSERT) -# still executes, but PG then throws "No results were returned by the -# query." The statement succeeded — ignore the trace. +# still executes, but the driver then complains there's no ResultSet. The +# statement succeeded — ignore the trace. Each dialect words it differently: +# PG: "No results were returned by the query" +# SQL Server:"The statement did not return a result set." _BENIGN_EXCEPTION_SUBSTRINGS = ( "No results were returned by the query", + "The statement did not return a result set", )