Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4995

mariadb_dyncol_column_count returns error when passing an empty dynamic column

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.4
    • 10.0.5
    • None
    • None

    Description

      mariadb_dyncol_column_count returns an error (-1) if no columns were added.

      How to repeat:

      static int mdev_4995(MYSQL *mysql)
      {
        DYNAMIC_COLUMN dyncol;
        uint column_count= 5;
        
        mariadb_dyncol_init(&dyncol); /* see patch for MDEV-4993 */
        rc= mariadb_dyncol_column_count(&dyncol,&column_count);
       
        FAIL_IF(rc < 0, "Error occured");
        FAIL_IF(column_count != 0, "expected column_count=0");
        return OK;
      }

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.