diff options
author | Jan UrbaĆski <wulczer@wulczer.org> | 2010-03-26 04:01:33 +0100 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2010-04-05 11:31:50 +0200 |
commit | 91ef0e09ed63c079374ed2a6ab5116415db8fea9 (patch) | |
tree | 9031a183fbb864778bc0a58da3ab20c4fa5e6aa4 /tests/test_async.py | |
parent | 9b259a8a5489928f9abf12cf4c7459696ef18a3e (diff) | |
download | psycopg2-91ef0e09ed63c079374ed2a6ab5116415db8fea9.tar.gz |
Change the API for asynchronous queries to use cursor.poll()
The isread() API was not safe, because the query might have not been
sent fully to the server after calling execute(). To make the async
API complete, a similar mechanism to async connections must be used.
The cursor now has a poll() method that you would use identically to
the poll() method of the connection class.
Diffstat (limited to 'tests/test_async.py')
0 files changed, 0 insertions, 0 deletions