Skip to content

Doltgres panics on INSERT...ON DUPLICATE KEY UPDATE <col> = DEFAULT query #3045

Description

@angelamayxie

Doltgres panics on the query INSERT INTO t(id) VALUES (1) ON DUPLICATE KEY UPDATE a = DEFAULT; (part of the test added in dolt/go-mysql-server#3669), with the following panic

panic: unhandled type: *sqlparser.Default [recovered, repanicked]

The same query results in a syntax error in Postgres, but that's because Postgres doesn't handle ON DUPLICATE KEY UPDATE clauses. However, Doltgres does usually handle ON DUPLICATE KEY UPDATE queries correctly; it seems like it just panics when DEFAULT is used in the clause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions