Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
RealDictRow.items() behave inconsistently on duplicate row names #884
When a SELECT query has two columns with the same name,
eg. we noticed this bug in a script that queries psycopg2 with a duplicate column name (unintentionally), and the RealDictRow ends up being passed to
This issue happens on psycopg2 2.8, but not 2.7.7.
I understand this is caused by my query, but this issue took some time to track down: it only happened in a particular build because it doesn't happen versions of psycopg2 + it seemed to happen in an unrelated module (msgpack).
Could psycopg2 raise an error when instead of building such a dict?
This was referenced
Apr 9, 2019
Moreover, in 2.8.1 this behaviour appears in conjunction with
This key - instance of