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

Virtual columns do not get along well with NO_ZERO_DATE

    XMLWordPrintable

Details

    Description

      MariaDB [test]> set sql_mode='STRICT_TRANS_TABLES,NO_ZERO_DATE';
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> CREATE TABLE t1 (
          ->   ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
          ->   tsv TIMESTAMP AS (ADDDATE(ts, INTERVAL 1 DAY)) VIRTUAL
          -> ) ENGINE=MyISAM;
      ERROR 1067 (42000): Invalid default value for 'tsv'
      

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              nirbhay_c Nirbhay Choubey (Inactive)
              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.