这是indexloc提供的服务,不要输入任何密码
Skip to content

Schema name cannot be UUID #837

@kkshyu

Description

@kkshyu

i have created a schema with

CREATE SCHEMA "13e35957-db6d-4d28-9d75-53b2f765cbfa"

and i cannot add any table into the schema on Hasura dashboard because the SQL is not generated correctly

{
    "statement": "CREATE TABLE 13e35957-db6d-4d28-9d75-53b2f765cbfa.\"student\"(\"id\" serial NOT NULL, \"name\" text NOT NULL, PRIMARY KEY (\"id\") );",
    "prepared": false,
    "error": {
        "exec_status": "FatalError",
        "hint": null,
        "message": "syntax error at or near \"13e35957\"",
        "status_code": "42601",
        "description": null
    },
    "arguments": []
}

it will raise syntax error because we should change into

{
    "statement": "CREATE TABLE \"13e35957-db6d-4d28-9d75-53b2f765cbfa\".\"student\"(\"id\" serial NOT NULL, \"name\" text NOT NULL, PRIMARY KEY (\"id\") );",
    "prepared": false,
    "error": {
        "exec_status": "FatalError",
        "hint": null,
        "message": "syntax error at or near \"13e35957\"",
        "status_code": "42601",
        "description": null
    },
    "arguments": []
}

Metadata

Metadata

Assignees

Labels

c/consoleRelated to consolee/quickfixcan be wrapped up in few hoursk/bugSomething isn't workingp/urgentImmediate action required

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions