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

Improve obscure error message #43

Closed
005 opened this issue Nov 12, 2016 · 1 comment
Closed

Improve obscure error message #43

005 opened this issue Nov 12, 2016 · 1 comment

Comments

@005
Copy link

005 commented Nov 12, 2016

i just got an error
RuntimeError: unexpected attribute data type: 23, expected 26
@ File "asyncpg/protocol/codecs/base.pyx", line 155,

which confused me. actually it happens when i try to select whole record.

create table mytab (a int);
insert into mytab values (1);
select mytab from mytab;

it can't decode "record" and fails with "unexpected attribute data type: 23, expected 26"

@elprans
Copy link
Member

elprans commented Nov 12, 2016

That's an actual bug. I just pushed a fix. The error message should be better now too. Thanks for the report!

@elprans elprans closed this as completed Nov 14, 2016
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