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

Get error when I connect to PostgreSQL database #317

Open
miguelcleon opened this issue Feb 7, 2017 · 3 comments
Open

Get error when I connect to PostgreSQL database #317

miguelcleon opened this issue Feb 7, 2017 · 3 comments

Comments

@miguelcleon
Copy link
Member

When I try to connect to an ODM2 database in PostgreSQL I get an error:

(ERROR) frmDBConfig:validateInput(104) - (psycopg2.ProgrammingError) relation "Variables" does not exist
LINE 1: Select "VariableCode" From "Variables" Limit 1

[SQL: Select "VariableCode" From "Variables" Limit 1']

This looks like a check that the ODM2 database is valid.

If the SQL was select variablecode from variables limit 1 it would work.

@miguelcleon
Copy link
Member Author

This also works Select "variablecode" From "variables" Limit 1

I think this is a problem in that there is a mismatch between the table and column names this produces https://github.com/ODM2/ODM2/blob/master/src/blank_schema_scripts/postgresql/ODM2_for_PostgreSQL.sql and what is expected here.

@miguelcleon
Copy link
Member Author

looks like the identifiers should just not be quoted so that PostgreSQL can ignore the case.

http://stackoverflow.com/questions/27434633/psycopg2-cannot-find-any-tables-after-connection

@miguelcleon
Copy link
Member Author

@horsburgh This is the problem I'm still having that I mentioned at the meeting last month.

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

1 participant