Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-761

Prepared statement API: Always check if connection is still valid

Details

    Description

      When closing a connection or in case a reconnect occured all statement handles will be invalidated by setting stmt->mysql to NULL. Since applications cannot check if a reconnect has occurred (without tracking change of thread_id) they will crash when calling a prepared statement API function, since stmt->mysql became NULL.

      So in the prepared statement API we should always check validity of the connection (stmt->mysql) and return a CR_SERVER_LOST error when the statement was invalidated.

      Attachments

        Activity

          There are no comments yet on this issue.

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.