|
Meta tags:
description=Only set sqlite3.Connection.initialized when the connection object
is initialised
Check initialised flag in close()
Check initialised flag in isolation_level
Use SQLite API when enabling autocommit mode [1]
Add tests
[1] This may happen during connection init, so we cannot use
pysqlite_connection_commit, since it requires an initialised
connection object. Previously, this was not a problem, since the
initialised flag was incorrectly set before the connection object was
initialised.
htt????/bugs.python.org/issue31746;
Headings (most frequently used words):
uh, oh, navigation, bpo, 31746, prevent, segfaults, with, uninitialised, sqlite3, connection, objects, 27431, for, footer, diff, view, menu, repository, there, are, no, files, selected, viewing, filter, by, extension, erlend, aasland, jul, 28, 2021, choose, reason, hiding, this, comment,
Text of the page (most frequently used words):
self (39), file (19), this (16), github (16), expand (16), and (14), #connection (13), null (12), for (12), applied (11), return (11), the (10), cannot (9), line (9), all (9), reload (9), down (8), isolation_level (8), you (7), that (7), suggestion (7), suggestions (7), while (7), code (7), pysqlite_connection (7), show (7), sqlite3 (7), sign (7), commit (6), changes (6), there (6), loading (6), comment (6), diff (6), hidden (6), characters (6), unicode (6), with (6), lambda (6), security (5), please (5), was (5), learn (5), open (5), uninitialised (5), your (5), can (4), not (4), pull (4), comments (4), error (4), page (4), hide (4), quality (4), more (4), number (4), bidirectional (4), about (4), view (4), unittest (4), def (4), test (4), func (4), sqlite (4), files (4), bpo (4), 31746 (4), prevent (4), segfaults (4), support (4), copilot (4), community (3), navigation (3), request (3), from (3), change (3), add (3), batch (3), res (3), called (3), pyobject (3), pysqlite_connection_set_isolation_level (3), reason (3), jul (3), 2021 (3), erlend (3), aasland (3), initialized (3), pysqlite_connection_init_impl (3), what (3), review (3), modules (3), _sqlite (3), lib (3), dbapi (3), whitespace (3), filter (3), commits (3), 27431 (3), objects (3), merged (3), python (3), account (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), resolved (2), outdated (2), create (2), lines (2), single (2), one (2), viewing (2), toggle (2), begin_statement (2), py_decref (2), int (2), pysqlite_connection_commit (2), here (2), use (2), pysqlite_check_connection (2), checks (2), close (2), choose (2), hiding (2), copy (2), base (2), __init__ (2), state (2), programmingerror (2), 370 (2), py_clear (2), 108 (2), original (2), contains (2), text (2), may (2), interpreted (2), compiled (2), differently (2), than (2), appears (2), below (2), editor (2), reveals (2), desktop (2), delete (2), edit (2), additions (2), deletions (2), uninitialisedconnectiontests (2), class (2), testcase (2), funcs (2), 243 (2), selected (2), apply (2), split (2), unified (2), failed (2), load (2), retry (2), jump (2), nbsp (2), extension (2), tree (2), issue (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, 2026, inc, right, now, check, back, later, queued, merge, multi, pending, reviews, has, been, marked, must, existing, order, valid, applying, deleted, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, else, _pysqlite_seterror, sqlite_ok, py_end_allow_threads, sqlite3_exec, py_begin_allow_threads, sqlite3_get_autocommit, might, get, during, init, py_none, 1288, 1298, iso, py_newref, static, pysqlite_connection_get_isolation_level, void, unused, 1257, 1264, pysqlite_check_thread, connection_close, pysqlite_do_all_statements, action_finalize, reactions, sorry, something, went, wrong, since, also, calling, twice, should, still, low, duplicate, off, topic, abuse, spam, will, displayed, describe, others, problem, author, contributor, markdown, link, 378, 373, thread, pyerr_setstring, pysqlite_state, pysqlite_get_state, pysqlite_connection_close_impl, 193, 191, py_incref, 144, 142, statement_cache, const, char, database, pybytes_asstring, database_obj, testloader, loadtestsfromtestcase, tests, testsuite, threadtests, sqliteonconflicttests, moduletests, 951, 971, suite, _sql, table, integer, opentests, assertraisesregex, subtest, cursor, iterdump, in_transaction, total_changes, test_uninit_operations, __new__, setup, assertequal, fetchone, test_drop_unused_refs, are, conversations, clear, filters, viewed, types, when, 3c12a33, select, changed, conversation, into, main, pablogsal, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|