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 serhiy.storchaka
Recipients ezio.melotti, moriyoshi, mrabarnett, serhiy.storchaka
Date 2012-06-15.12:55:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
This is not infinite loop. This is O(2**len(prefix_before_first_quote)) computation. Measure times of matching for "INSER(`id`...", "INSERT(`id`...", "INSERT (`id`...", "INSERT I(`id`...", etc.

Better use r'''(?:[^`';]+|'(?:''|[^'])*'|`(?:``|[^`])*`)+;''' regexp.
History
Date User Action Args
2012-06-15 12:55:05serhiy.storchakasetrecipients: + serhiy.storchaka, ezio.melotti, mrabarnett, moriyoshi
2012-06-15 12:55:05serhiy.storchakasetmessageid: <[email protected]>
2012-06-15 12:55:05serhiy.storchakalinkissue15077 messages
2012-06-15 12:55:05serhiy.storchakacreate