Skip to content

Problems with statement "ON DUPLICATE KEY" for postgress #341

@nebrera

Description

@nebrera

The file: common/src/main/java/io/druid/common/config/ConfigManager.java has a line:

this.insertStatement = String.format(
"INSERT INTO %s (name, payload) VALUES (:name, :payload) ON DUPLICATE KEY UPDATE payload = :payload",
configTable
);

The statement "ON DUPLICATE KEY UPDATE" is not valid for postgresql.

Could it be compatible with both (mysql and postgersql) ??

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