-
Notifications
You must be signed in to change notification settings - Fork 563
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
TypeError when trying to unpickle results with equal column names #649
Comments
I will try to reproduce this, just to confirm, this happens on SQL Server as well, with "ODBC Driver 17 for SQL Server"? |
Yes. |
Possibly related: #446 |
@tweakimp I am able to repro the issue, and I will into it over the next few days |
Great, thank you for your time |
I've located the code that throws that error, but I still don't quite understand the logic behind it,
Which will cause the early return if you select different number of columns, because then |
Also bitten by this on SQL Server 2014 + msodbcsql17; @v-makouz did you manage to find a work around? |
@piskvorky I'm afraid I don't really know anything new, other then if the above code is changed to
The above repro will work correctly, but I'm not sure if that'll cause issues for anything else. I'm just not sure why that check is there. |
Environment
Issue
When trying to unpickle a result from a query with some equal column names, a TypeError is raised:
TypeError: cannot create 'pyodbc.Row' instances
Code to reproduce
I noticed that at work where we have a MS SQL Server, but it is possible to reproduce the error with sqlite.
The text was updated successfully, but these errors were encountered: