Visitar URL original
bpo-40956: Convert sqlite3.connect and sqlite3.Connection.__init__ to AC by erlend-aasland · Pull Request #24421 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Resolve conflict: cached_statements now defaults to 128, not 100
  • Loading branch information
Erlend E. Aasland
Erlend E. Aasland committed Jun 13, 2021
commit 754fdc6fc4971df09e7f36aaa33f06fee04d089d
2 changes: 1 addition & 1 deletion Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ _sqlite3.Connection.__init__ as pysqlite_connection_init
isolation_level: object = NULL
check_same_thread: bool(accept={int}) = True
factory: object(c_default='(PyObject*)pysqlite_ConnectionType') = ConnectionType
cached_statements: int = 100
cached_statements: int = 128
uri: bool = False
[clinic start generated code]*/

Expand Down
2 changes: 1 addition & 1 deletion Modules/_sqlite/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ _sqlite3.connect as pysqlite_connect
isolation_level: object = NULL
check_same_thread: bool(accept={int}) = True
factory: object(c_default='(PyObject*)pysqlite_ConnectionType') = ConnectionType
cached_statements: int = 100
cached_statements: int = 128
uri: bool = False

Opens a connection to the SQLite database file database.
Expand Down