applied patch for :execute and :exec_query