File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -648,7 +648,8 @@ Cursor Objects
648
648
649
649
This is a nonstandard convenience method for executing multiple SQL statements
650
650
at once. It issues a ``COMMIT `` statement first, then executes the SQL script it
651
- gets as a parameter.
651
+ gets as a parameter. This method disregards :attr: `isolation_level `; any
652
+ transation control must be added to *sql_script *.
652
653
653
654
*sql_script * can be an instance of :class: `str `.
654
655
@@ -1048,6 +1049,9 @@ setting :attr:`isolation_level` to ``None``. This will leave the underlying
1048
1049
control the transaction state by explicitly issuing ``BEGIN ``, ``ROLLBACK ``,
1049
1050
``SAVEPOINT ``, and ``RELEASE `` statements in your code.
1050
1051
1052
+ Note that :meth: `~Cursor.executescript ` disregards
1053
+ :attr: `isolation_level `; any transaction control must be added explicitly.
1054
+
1051
1055
.. versionchanged :: 3.6
1052
1056
:mod: `sqlite3 ` used to implicitly commit an open transaction before DDL
1053
1057
statements. This is no longer the case.
You can’t perform that action at this time.
0 commit comments