This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author EvensF
Recipients EvensF, WolfgangFahl
Date 2020-08-28.23:00:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598655619.32.0.97136158405.issue41638@roundup.psfhosted.org>
In-reply-to
Content
I don't think this is a bug. As I have explained in the answer I have provided on StackOverflow (https://stackoverflow.com/posts/comments/112539410?noredirect=1), it seems that sqlite3 uses by default the qmark parameter substitution style for their query which uses a tuple to provide it with its values. So it makes sense that the error message only does reference the index number since the matching is done on the order where a parameter appear on the SQL query and the same order in the tuple provided.

Here @Wolfgang seems to try to use the named parameter substitution style because he is using a dictionary to provide the values to the query. You have to set it globally before doing that (sqlite3.paramstyle = 'named').

So from my point of view there is no bug here.
History
Date User Action Args
2020-08-28 23:00:19EvensFsetrecipients: + EvensF, WolfgangFahl
2020-08-28 23:00:19EvensFsetmessageid: <1598655619.32.0.97136158405.issue41638@roundup.psfhosted.org>
2020-08-28 23:00:19EvensFlinkissue41638 messages
2020-08-28 23:00:19EvensFcreate