About the Bug...

  • [x] I have checked that this issue has not already been reported.

  • [x] I have confirmed this bug exists on the latest version of MyBatis.

  • [x] I have confirmed this bug reproduces without 3rd party extensions (e.g. mybatis-plus).

Database Version

PostgreSQL 14.7

JDBC Driver Version

druid 1.2.8

Issue Description

你好,我发现一个问题,当我重复执行使用游标的statement时出现statement已经被关闭,根据排查是因为PgStatement在第一次使用游标结束后会将PgStatement状态设置为close,并且PgStatemsnt会与PgConnection绑定,只要后续使用这个数据库连接PgConnection就会导致出现statement已经关闭的问题,请问这是我的配置问题还是是一个bug。

About your report...

  • [x] I did not use images 🖼️ for showing text information (code, error, etc.).

  • [x] I checked the Preview and my report looks awesome! 👍