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

mariadb_rpl_fetch() crashes if table is partitioned

    XMLWordPrintable

Details

    Description

      Following the bug I reported in CONC-657, I tested it in Connector/C 3.3.8.
      Unfortunately the fix does not match my proposed fix, and still crashes.

      Note that I proposed to do this:
      ev += (rpl_event->event.rows.extra_data_size - 2);
      However, 3.3.8 does this, which is totally wrong:
      ev+= rpl_event->event.rows.extra_data_size;

      I tested it on a MySQL 8.0 database with a table that is partitioned by range.

      CREATE TABLE `partitions` (
      `id` int NOT NULL PRIMARY KEY,
      `str` varchar(25) NOT NULL
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
      /*!50100 PARTITION BY RANGE (`id`)
      (PARTITION p0 VALUES LESS THAN (10) ENGINE = InnoDB,
      PARTITION p1 VALUES LESS THAN (20) ENGINE = InnoDB,
      PARTITION p2 VALUES LESS THAN MAXVALUE ENGINE = InnoDB) */;

      Attachments

        Activity

          People

            georg Georg Richter
            sruli.ganor Sruli Ganor
            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.