Fix returning the result from edit query statements.