Skip to content

Quoting all table and column names #2

@cmarmo

Description

@cmarmo

Hello Mihail,
first of all thanks for your code, you saved my life! :)
I just want to report a problem with quotes in the output sql file.
Column names are quoted when the table is created but table names are not.
In index creation commands table and columns are not quoted (see attached output example)

DROP TABLE IF EXISTS regionCodes;

CREATE TABLE regionCodes (
    "idregion" serial NOT NULL ,
    "regionName" varchar(45) NOT NULL ,
    "regionCode" varchar(2) NOT NULL ,
    PRIMARY KEY ("idregion")

);
CREATE UNIQUE INDEX "regionCodes_regionName_UNIQUE" ON regionCodes (regionName);
CREATE UNIQUE INDEX "regionCodes_regionCode_UNIQUE" ON regionCodes (regionCode);

This could be produced errors in importing.
If you have time to take a look...

Thanks again for your code!
Chiara

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions