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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0.4
    • Fix Version/s: 10.0.5
    • Component/s: None
    • Labels:
      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

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: