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

Query string that renames columns #51

Open
aagaard opened this issue Aug 27, 2012 · 1 comment
Open

Query string that renames columns #51

aagaard opened this issue Aug 27, 2012 · 1 comment
Milestone

Comments

@aagaard
Copy link

aagaard commented Aug 27, 2012

When I apply a query-string to the apty.Table() function that renames the predefined columns, it returns a KeyError.

atpy.Table('sqlite', database_file, table='Some_table', \
query='select Column as Cow from Some_table')

The problem originates from the mismatch between the cursor.description() and the column_types_dict after executing the query-string.

@astrofrog
Copy link
Member

Sorry for not replying to this sooner - unfortunately I'm not sure how to address this. If you have ideas for how to fix it, please let me know, or open a pull request!

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

2 participants