[CONPY-251] cursors nextset() method doesn't check stmt status (and might crash) Created: 2023-02-12  Updated: 2023-02-12  Resolved: 2023-02-12

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0
Affects Version/s: 1.1.5
Fix Version/s: 1.1.6

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

In cursor method nextset() the status of the statement handle will not be checked - if a cursor was not executed before (self->stmt = NULL) it will crash.

How to repeat:

import mariadb
conn= mariadb.connect()
cursor= conn.cursor()
cursor.nextset()


Generated at Thu Feb 08 03:31:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.