GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sqlite3: issue a warning if a sequence of params are used with named placeholders in queries · Issue #101693 · python/cpython Closed Labels Description(See Discourse topic.) Per now, it is possible to supply a sequence of params to queries with named placeholders: >>> cx.execute("select :name", [42]).fetchall() [(42,)] >>> cx.execute("select :other", [42]).fetchall() [(42,)] This may result in unexpected results if a user misuse the sqlite3 module and use PEP-249 style numeric placeholders: PEP-249 style numeric placeholders are not supported by sqlite3; it only supports PEP-249 style named placeholders and PEP-249 style qmark placeholders, so the placeholders in the above example are interpreted as named, not numeric, placeholders. Based on the discussion in the above linked Discourse topic, I propose to now issue a deprecation warning if sequences are used with named placeholders. The deprecation warning should inform that from Python 3.14 and onward, Linked PRsActivity
MetadataMetadataAssigneesLabelsProjects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |