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
635635
636636 This is a nonstandard convenience method for executing multiple SQL statements
637637 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 *.
639640
640641 *sql_script * can be an instance of :class: `str `.
641642
@@ -1038,6 +1039,9 @@ setting :attr:`isolation_level` to ``None``. This will leave the underlying
10381039control the transaction state by explicitly issuing ``BEGIN ``, ``ROLLBACK ``,
10391040``SAVEPOINT ``, and ``RELEASE `` statements in your code.
10401041
1042+ Note that :meth: `~Cursor.executescript ` disregards
1043+ :attr: `isolation_level `; any transaction control must be added explicitly.
1044+
10411045.. versionchanged :: 3.6
10421046 :mod: `sqlite3 ` used to implicitly commit an open transaction before DDL
10431047 statements. This is no longer the case.
You can’t perform that action at this time.
0 commit comments