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

Number of an invalid row is not calculated for table value constructor

Details

    Description

      Maybe it should just go to documentation as a limitation. It is unfortunate however if it keeps returning "1" rather than some non-natural number.

      CREATE OR REPLACE TABLE t (a CHAR(1)) VALUES ('a'),('b'),('foo');
      

      10.4 69bd2c88

      CREATE OR REPLACE TABLE t (a CHAR(1)) VALUES ('a'),('b'),('foo');
      Warnings:
      Warning	1406	Data too long for column 'a' at row 1
      

      Consequently, ERROR_INDEX from MDEV-10075 is not calculated for table value constructors, either.

      I"ve set affected versions to 10.3+ because that's where table value constructors were introduced, and surely the number is not calculated in 10.3 either; but the test case above is only applicable to 10.4+, 10.3 doesn't seem to allow to create table from a table value constructor.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Rucha Deodhar made transition -
            Confirmed Open
            9s 1
            Rucha Deodhar made transition -
            Open Confirmed
            22d 19h 29m 2
            Rucha Deodhar made transition -
            Confirmed In Review
            13s 1
            Rucha Deodhar made transition -
            Stalled In Review
            14d 4h 4m 2
            Rucha Deodhar made transition -
            In Review Stalled
            174d 10h 39m 3
            Rucha Deodhar made transition -
            Stalled Closed
            12m 52s 1

            People

              rucha174 Rucha Deodhar
              elenst Elena Stepanova
              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.