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

Connector stmt sends 'close' command if stmt handle was never used

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • N/A
    • N/A
    • None

    Description

      If application inits stmt handle, but then closes it without use, C/C sends redundant 'close' command to the server for the stmtid==0. Application has to call mysql_stmt_close in this case, as it needs to free allocated stmt handle memory, anyway.
      I am not sure if this is a bug or an improvement. But this scenario happens in C/ODBC quite often, as it allocates stmt along with ODBC statement handle allocation, and I'd prefer not to fix this in GA version.

      Attachments

        Issue Links

          Activity

            People

              Lawrin Lawrin Novitsky
              Lawrin Lawrin Novitsky
              Votes:
              1 Vote for this issue
              Watchers:
              4 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.