Skip to content

重复执行使用游标的statement报statement已经关闭异常 #3505

@5087999223

Description

@5087999223

About the Bug...

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

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

  • 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...

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions