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 xtreak
Recipients Montana Low, ghaering, lys.nikolaou, xtreak, zzzeek
Date 2018-12-04.17:47:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543945659.63.0.788709270274.issue35398@psf.upfronthosting.co.za>
In-reply-to
Content
Did some debugging here. If I am understanding this correctly the rowcount is set at https://github.com/python/cpython/blob/b8e689a6e8134e88f857a55e50b6a4977967e385/Modules/_sqlite/cursor.c#L574 . It checks for is_dml flag that is set here https://github.com/python/cpython/blob/b8e689a6e8134e88f857a55e50b6a4977967e385/Modules/_sqlite/statement.c#L78

The part to set is_dml skips space, tabs and newline and checks for the first set of characters that is not skipped to be insert, update, delete or replace and in this case the first set of characters to be matched will be "/* watermarking */". Thus with comment not matching, is_dml is not set and -1 is set for the rowcount.
History
Date User Action Args
2018-12-04 17:47:39xtreaksetrecipients: + xtreak, ghaering, zzzeek, lys.nikolaou, Montana Low
2018-12-04 17:47:39xtreaksetmessageid: <1543945659.63.0.788709270274.issue35398@psf.upfronthosting.co.za>
2018-12-04 17:47:39xtreaklinkissue35398 messages
2018-12-04 17:47:39xtreakcreate