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

Weird error message upon CREATE TABLE with DEFAULT: Function or expression 'cache' cannot be used in the ??? clause

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2
    • Fix Version/s: 10.2.6
    • Component/s: OTHER
    • Labels:
    • Sprint:
      10.2.6-2, 10.2.6-3

      Description

      MariaDB [test]> CREATE OR REPLACE TABLE t1 ( col INT DEFAULT ( 1 LIKE ( NOW() BETWEEN '2000-01-01' AND '2012-12-12' ) ) );
      ERROR 1901 (HY000): Function or expression 'cache' cannot be used in the ??? clause of `col`
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacob-mathew Jacob Mathew (Inactive)
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: