Skip to content

Camera model - SQL schema issue with on column #33

@rokf

Description

@rokf

Hello,

The SQL schema for the Camera model seems to have a bug where the on column isn't quoted. on is a keyword and should therefore be written as "on" to be accepted by PostgreSQL.

https://github.com/smart-data-models/dataModel.Device/blob/master/Camera/schema.sql

Image

The same is true for DuckDB - it uses PostgreSQL's syntax and complains about the same issue when I try to execute the the schema file.

In case that these schema files are generated it might make sense to adjust the code of the generator so that it quotes all the columns to avoid such issues? There are plenty of keywords in PostgreSQL/DuckDB which could cause the same problem 🤔

Thank you!

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