Skip to content

The plugin never closes their cursor to the db, blocking some tables #28

@autra

Description

@autra

Description

The plugin never calls cur.close() after making their query

Step to reproduce

  • open qgis, activate the plugin
  • open a psql connexion to the same db, and try to issue for instance drop schema audit cascade

expected: the operation succeeds

actual: the operation is blocked by a lock, even though the plugin is not doing anything. One needs to close qgis (or reload the plugin with plugin reloader) to be able to drop the audit schema.

This is a hassle in dev mode for this drop, but other stuff might be locked that could disturbing day-to-day usage of the db.

Proposed solution

Close the cursor once it's not needed any more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions