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

timestamp virtual column yields syntax error in show create table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.12, 5.5.35, 10.0.7, 10.0.22
    • Fix Version/s: 10.1.8
    • Component/s: Parser, Temporal Types
    • Labels:
      None
    • Environment:
      Linux x64

      Description

      You cannot mysqldump/reload the table in the below testcase due to invalid sql being returned by "show create table".

      drop table if exists t1;
      create table t1(a int, b timestamp as (a=1) virtual)engine=innodb;
      show create table t1;

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              sbester1 sbester1
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: