Thrown when the executed query, unexpectedly, did not produce a result set. Use the exec functions, not query (query, querySet, queryRow, etc.), for commands that don't produce result sets (such as INSERT).
See Implementation
Thrown when the executed query, unexpectedly, did not produce a result set. Use the exec functions, not query (query, querySet, queryRow, etc.), for commands that don't produce result sets (such as INSERT).