Details

    • Task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • None
    • None

    Description

      Currently it's not possible to retrieve the internal status of a prepared statement without accessing the member of MYSQL_STMT structure.

      The different states are defined in enum_mysqlnd_stmt_state, but there is no api function for retrieving the current statement status.

      Proposal: Add an additional enum value STMT_ATTR_STATE and retrieve the statement state with mysql_stmt_attr_get:

      enum_mysqlnd_stmt_state state;
      mysql_stmt_attr_get(stmt, STMT_ATTR_STATE, &state):
      

      Attachments

        Activity

          georg Georg Richter created issue -
          georg Georg Richter made changes -
          Field Original Value New Value
          Description Currently it's not possible to retrieve the internal status of a prepared statement without accessing the member of {{MYSQL_STMT}} structure.

          The different states are defined in {{enum_mysqlnd_stmt_state}}, but there is no api function for retrieving the current statement status.

          Proposal: Add an additional enum value {{STMT_ATTR_STATE}} and retrieve the statement state with {{mysql_stmt_attr_get}}.
          Currently it's not possible to retrieve the internal status of a prepared statement without accessing the member of {{MYSQL_STMT}} structure.

          The different states are defined in {{enum_mysqlnd_stmt_state}}, but there is no api function for retrieving the current statement status.

          Proposal: Add an additional enum value {{STMT_ATTR_STATE}} and retrieve the statement state with {{mysql_stmt_attr_get}}:


          {code:java}
          enum_mysqlnd_stmt_state state;
          mysql_stmt_attr_get(stmt, STMT_ATTR_STATE, &state):
          {code}
          georg Georg Richter made changes -
          issue.field.resolutiondate 2018-10-23 11:14:34.0 2018-10-23 11:14:34.003
          georg Georg Richter made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          julien.fritsch Julien Fritsch made changes -
          Workflow MariaDB connectors [ 88580 ] MariaDB v4 [ 161134 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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