File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -635,7 +635,8 @@ Cursor Objects
635
635
636
636
This is a nonstandard convenience method for executing multiple SQL statements
637
637
at once. It issues a ``COMMIT `` statement first, then executes the SQL script it
638
- gets as a parameter.
638
+ gets as a parameter. This method disregards :attr: `isolation_level `; any
639
+ transation control must be added to *sql_script *.
639
640
640
641
*sql_script * can be an instance of :class: `str `.
641
642
@@ -1038,6 +1039,9 @@ setting :attr:`isolation_level` to ``None``. This will leave the underlying
1038
1039
control the transaction state by explicitly issuing ``BEGIN ``, ``ROLLBACK ``,
1039
1040
``SAVEPOINT ``, and ``RELEASE `` statements in your code.
1040
1041
1042
+ Note that :meth: `~Cursor.executescript ` disregards
1043
+ :attr: `isolation_level `; any transaction control must be added explicitly.
1044
+
1041
1045
.. versionchanged :: 3.6
1042
1046
:mod: `sqlite3 ` used to implicitly commit an open transaction before DDL
1043
1047
statements. This is no longer the case.
You can’t perform that action at this time.
0 commit comments