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 sir-sigurd
Recipients sir-sigurd
Date 2019-02-22.07:44:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550821487.87.0.741979609564.issue36073@roundup.psfhosted.org>
In-reply-to
Content
It's somewhat similar to bpo-10811, but for converter function:

In [197]: import sqlite3 as sqlite
     ...: con = sqlite.connect(':memory:', detect_types=sqlite.PARSE_COLNAMES)
     ...: cur = con.cursor()
     ...: sqlite.converters['CURSOR_INIT'] = lambda x: cur.__init__(con)
     ...: 
     ...: cur.execute('create table test(x foo)')
     ...: cur.execute('insert into test(x) values (?)', ('foo',))
     ...: cur.execute('select x as "x [CURSOR_INIT]", x from test')
     ...: 
[1]    25718 segmentation fault  python manage.py shell

Similar to bpo-10811, proposed patch raises ProgrammingError instead of crashing.
History
Date User Action Args
2019-02-22 07:44:47sir-sigurdsetrecipients: + sir-sigurd
2019-02-22 07:44:47sir-sigurdsetmessageid: <1550821487.87.0.741979609564.issue36073@roundup.psfhosted.org>
2019-02-22 07:44:47sir-sigurdlinkissue36073 messages
2019-02-22 07:44:47sir-sigurdcreate