Skip to content

Commit 7d80b31

Browse files
author
James William Pye
committed
Minor improvements.
1 parent 3e866b5 commit 7d80b31

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

postgresql/documentation/driver.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,8 @@
385385
statements created from pre-existing identifiers, ``statement_from_id``, must
386386
be explicitly closed if the statement is to be discarded.
387387
388-
Statement objects are one-time objects. Once closed, execution will cause a
389-
database error.
388+
Statement objects are one-time objects. Once closed, they can no longer be used.
389+
390390
391391
Prepared Statement Interface Points
392392
-----------------------------------
@@ -445,7 +445,7 @@
445445
return the row count returned by the statement as an integer.
446446
447447
.. note::
448-
DML that returns rows will not return a row count.
448+
DML that returns row data, RETURNING, will *not* return a row count.
449449
450450
The result set created by the statement determines what is actually returned.
451451
Naturally, a statement used with ``first()`` should be crafted with these
@@ -689,7 +689,7 @@
689689
>>> for rowset in ps.chunks():
690690
... sys.stdout.buffer.writelines(rowset)
691691
...
692-
<Lots of Data>
692+
<lots of data>
693693
694694
``COPY FROM STDIN`` commands are supported via
695695
`postgresql.api.PreparedStatement.load`. Each invocation to ``load``
@@ -716,6 +716,9 @@
716716
>>> copyin = dst.prepare('COPY atable FROM STDIN')
717717
>>> copyin.load(copyout.chunks())
718718
719+
Specifically, each chunk of row data produced by ``chunks()`` will be written in
720+
full by ``load()`` before getting another chunk to write.
721+
719722
720723
Cursors
721724
=======

0 commit comments

Comments
 (0)