Skip to content

Querying for timestamped fields doesn't work. #142

Open
@morgan-greywolf

Description

@morgan-greywolf

Consider the following table:

CREATE TABLE Book
id int unsigned NOT NULL AUTO_INCREMENT,
title varchar(255) DEFAULT NULL,
author varchar(255) DEFAULT NULL,
when_added timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP

Now do:

SELECT * FROM Book where when_added >= '2022-09-30 00:00:00';

The results in dbout will be:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/home/foo/bar/' at line 1

rather than the expected result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions