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

Odd parsing error upon wrong partitioning expression

    XMLWordPrintable

    Details

      Description

      MariaDB [test]> create table t1 (c char(8)) partition by range (c(4)) (partition p1 values less than ('foo'));
      ERROR 1064 (42000): Constant, random or timezone-dependent expressions in (sub)partitioning function are not allowed near ') (partition p1 values less than ('foo'))' at line 1
      

      The text is odd, since it's neither constant, nor random, nor timezone-dependent expression. It is not very important though, the statement would fail anyway, since partitioning by CHAR is not supported.

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: