Closed Ebsan closed 5 months ago
From the PostgreSQL doc, KEY
is a reserved word of SQL-92. So I suppose it should be added to all databases, see https://github.com/jhipster/generator-jhipster/tree/main/jdl/jhipster/reserved-keywords
And it's the same for H2 (like in your error): http://www.h2database.com/html/advanced.html#keywords
Overview of the issue
I'm getting an error when querying a table with a column name of "key". I have postgresql chosen and it doesn't seem like "key" is a reserved word. However, if it is could it be added to the reserved word in the JDL schema? At the moment we can call a field "key" in the JDL.
Error message:
Motivation for or Use Case
If "key" is a reserved word for some supported databases than it shouldn't be allowed to be used in JDLs.
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)
7.9.3
JHipster configuration
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.10+9, mixed mode)
git version 2.34.1.windows.1
node: v16.16.0
npm: 8.3.0
Docker version 20.10.17, build 100c701
docker-compose version 1.29.2, build 5becea4c
No change to package.json was detected. No package manager install will be executed. Congratulations, JHipster execution is complete! Sponsored with ❤️ by @oktadev.