Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-138

Access violation in SelectResultSetBin::resetRow with server prepared statements

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.3, 1.1.5
    • 1.0.5, 1.1.6
    • General
    • None
    • Windows 11, Visual Studio 2022

    Description

      When using useServerPrepStmts, querying a 11.4.3 ubuntu server,
      query: "SELECT server_id, online, public_name FROM server WHERE server_id = ?", id
      result count: 1
      call resultset::getBoolean(1)
      -> crash in SelectResultSetBin::resetRow() -> mysql_stmt_fetch(), mariadb_stmt.c line 1554:
      if ((rc= stmt->mysql->methods->db_stmt_fetch(stmt, &row)))
      access violation, stmt->mysql is null.
      Happens both with my own build against master or develop as well as official 1.1.5 build.
      I'm not doing anything special, and everything works fine without useServerPrepStmts

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            noko Noko
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.