Support cursors on readonly queries
This adds `:declare`, `:fetch`, `:move`, and `:close` to allowed queries when `while_preventing_writes` is set. I didn't support `:open` because AFAICT `:declar` implcitly opens a cursor and all of my attempts to write `@connection.execute("OPEN cur_ex")` threw a syntax error on `OPEN`. It seems like open isn't supported with the client. Fixes: #37960
Showing
想要评论请 注册 或 登录