mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-12-01 21:23:43 +03:00
Document that named cursors don't raise an exception going out-of-bound
See issue #174 for the details.
This commit is contained in:
parent
a0a63e3ac7
commit
5c99d2a456
|
@ -332,10 +332,6 @@ The ``cursor`` class
|
||||||
`~psycopg2.ProgrammingError` is raised and the cursor position is
|
`~psycopg2.ProgrammingError` is raised and the cursor position is
|
||||||
not changed.
|
not changed.
|
||||||
|
|
||||||
The method can be used both for client-side cursors and
|
|
||||||
:ref:`server-side cursors <server-side-cursors>`. Server-side cursors
|
|
||||||
can usually scroll backwards only if declared `~cursor.scrollable`.
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
According to the |DBAPI|_, the exception raised for a cursor out
|
According to the |DBAPI|_, the exception raised for a cursor out
|
||||||
|
@ -347,6 +343,13 @@ The ``cursor`` class
|
||||||
except (ProgrammingError, IndexError), exc:
|
except (ProgrammingError, IndexError), exc:
|
||||||
deal_with_it(exc)
|
deal_with_it(exc)
|
||||||
|
|
||||||
|
The method can be used both for client-side cursors and
|
||||||
|
:ref:`server-side cursors <server-side-cursors>`. Server-side cursors
|
||||||
|
can usually scroll backwards only if declared `~cursor.scrollable`.
|
||||||
|
Moving out-of-bound in a server-side cursor doesn't result in an
|
||||||
|
exception, if the backend doesn't raise any (Postgres doesn't tell us
|
||||||
|
in a reliable way if we went out of bound).
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: arraysize
|
.. attribute:: arraysize
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user