Skip to content

Commit

Permalink
bpo-34061: Document sqlite3.NotSupportedError (pythonGH-8172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Niemira authored and berkerpeksag committed Jul 8, 2018
1 parent 25b804a commit bc9aa81
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Doc/library/sqlite3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ Connection Objects
called as the SQL function. If *deterministic* is true, the created function
is marked as `deterministic <https://sqlite.org/deterministic.html>`_, which
allows SQLite to perform additional optimizations. This flag is supported by
SQLite 3.8.3 or higher, ``sqlite3.NotSupportedError`` will be raised if used
SQLite 3.8.3 or higher, :exc:`NotSupportedError` will be raised if used
with older versions.

The function can return any of the types supported by SQLite: bytes, str, int,
Expand Down Expand Up @@ -835,6 +835,13 @@ Exceptions
disconnect occurs, the data source name is not found, a transaction could
not be processed, etc. It is a subclass of :exc:`DatabaseError`.

.. exception:: NotSupportedError

Exception raised in case a method or database API was used which is not
supported by the database, e.g. calling the :meth:`~Connection.rollback`
method on a connection that does not support transaction or has
transactions turned off. It is a subclass of :exc:`DatabaseError`.


.. _sqlite3-types:

Expand Down

0 comments on commit bc9aa81

Please sign in to comment.