bpo-32215: Fix performance regression in sqlite3 by berkerpeksag · Pull Request #8511 · python/cpython (original) (raw)
Can a user function that starts with such prefix (for example "replacewhitespaces()") be used in this context?
Yes, they can. The original intent of the old version was to make that check more robust and avoid cases like you've mentioned. I don't think there is a way to achieve this without relying on SQLite APIs, but then relying on newer APIs usually results seeing "I can't compile the sqlite3 module on my system" issues on the tracker :)