[issue21465] sqlite3 Row can return duplicate keys when using adapters

Erlend E. Aasland report at bugs.python.org
Wed May 19 04:08:37 EDT 2021


Erlend E. Aasland <erlend.aasland at innova.no> added the comment:

AFAICS, this has nothing to do with adapters; you'll get duplicate keys just by executing 'select 1 as "token", 2 as "token"'. If you want the columns to have unique names, you should assign them unique names.

At most, there could be a sentence about this in the docs ("best practices"), but IMO this should be obvious. I would leave the docs as they are.

Suggesting to close this as not a bug.

----------
assignee: ghaering -> 
nosy: +berker.peksag, erlendaasland -ghaering
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21465>
_______________________________________


More information about the Python-bugs-list mailing list