Skip to content

PostgreSQL database name with special characters #4805

@bruntib

Description

@bruntib

Superusers can add new products via the web GUI. This product addition also creates the database itself. However, an error is thrown when a PostgreSQL database name is provided that is starting with a digit or contains a dash character. These are not invalid characters in PostgreSQL, but the string has to be quoted in the SQL query:

CREATE DATABASE "42my-database";

If the database is created through SQLAlchemy, then quotation doesn't happen for some reason.

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