Skip to content

Create table with DEFAULT (now()) fails in AST driver #300

@wojtekn

Description

@wojtekn

Here is the SQL:

CREATE TABLE `test_now_default` (
  `id` int NOT NULL,
  `updated` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

It should work in MySQL 8.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions