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

Error when reflecting table with TIMESTAMP WITH TIME ZONE type column #33

Open
rudolfce opened this issue Aug 8, 2019 · 0 comments
Open

Comments

@rudolfce
Copy link

rudolfce commented Aug 8, 2019

An error is raised when trying to inspect tables with columns with the timestamptz type

~/Documentos/celero/celerov2-service-ai/env/lib/python3.5/site-packages/sqlalchemy_monetdb/dialect.py in get_columns(self, connection, table_name, schema, **kw)
    178                 args = (row.type_digits, row.type_scale)
    179             col_type = MONETDB_TYPE_MAP.get(row.type, None)
--> 180             col_type = col_type(*args)
    181 
    182             # monetdb translates an AUTO INCREMENT into a sequence

TypeError: 'NoneType' object is not callable

On post-mortem, it is possible to see that the error begins when MONETDB_TYPE_MAP.get(row.type, None) returns None for row.type equals to timestamptz. I created a pull request to try to address this issue

Regards

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