Do not set writing tx flag with SET TRANSACTION READ ONLY.
authorTatsuo Ishii <[email protected]>
Thu, 24 May 2018 02:07:35 +0000 (11:07 +0900)
committerTatsuo Ishii <[email protected]>
Thu, 24 May 2018 02:07:35 +0000 (11:07 +0900)
commitf5663040c01107f386b71ed0549edf6c7aeaf8db
tree5105500d510f87622d972426b513c89c22c0f897
parent5f387e7e5d9a64616c411d5113ea90148ad144a0
Do not set writing tx flag with SET TRANSACTION READ ONLY.

In extended query mode, execute() sets the flag upon completion of
writing queries.  However the flag was set even when SET TRANSACTION
READ ONLY is issued.  Fix this by using
pool_is_transaction_read_only(). This has been already done in simple
query case.
src/protocol/pool_proto_modules.c