Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'user' and 'timestamp' are reserved words in postrges #14

Closed
angmac opened this issue Apr 9, 2014 · 2 comments
Closed

'user' and 'timestamp' are reserved words in postrges #14

angmac opened this issue Apr 9, 2014 · 2 comments

Comments

@angmac
Copy link

angmac commented Apr 9, 2014

Mantis translate the schema definition to the following:
CREATE TABLE mantis_plugin_TimeTracking_data_table (
id SERIAL,
bug_id INTEGER DEFAULT NULL,
user INTEGER DEFAULT NULL,
expenditure_date TIMESTAMP DEFAULT NULL,
hours FLOAT8 DEFAULT NULL,
timestamp TIMESTAMP DEFAULT NULL,
info VARCHAR(255) DEFAULT NULL,
PRIMARY KEY (id)
)
and because user and timestamp are reserved words in postgres it throws error.

@grangeway
Copy link

We should add some "keywords" handling functionlity to the new db layer to block them being used in table/column definitions within mantis -this would then avoid these sorts of issues.

@dregad
Copy link
Member

dregad commented Apr 12, 2018

Closing as duplicate of #36

@dregad dregad closed this as completed Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants