Skip to content

ON UPDATE CURRENT_TIMESTAMP in column definition does not update TIMESTAMP #6030

@GypsyCosmonaut

Description

@GypsyCosmonaut

Steps to reproduce

DDL, DML, DQL

CREATE TABLE relation (time TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, random INT) ;

INSERT INTO relation SET random = 11 ;

SELECT * FROM relation ;

UPDATE relation SET random = 22 where random = 11 ;

SELECT * FROM relation ;

You'll see that MySQL updates the time field, however Dolt does not

Dolt version 1.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions