mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
fix wait_select sample to be extras
not extensions
This commit is contained in:
parent
35b4a01b6d
commit
dcb198e8b7
|
@ -241,7 +241,7 @@ How do I interrupt a long-running query in an interactive shell?
|
||||||
|
|
||||||
.. code-block:: pycon
|
.. code-block:: pycon
|
||||||
|
|
||||||
>>> psycopg2.extensions.set_wait_callback(psycopg2.extensions.wait_select)
|
>>> psycopg2.extensions.set_wait_callback(psycopg2.extras.wait_select)
|
||||||
>>> cnn = psycopg2.connect('')
|
>>> cnn = psycopg2.connect('')
|
||||||
>>> cur = cnn.cursor()
|
>>> cur = cnn.cursor()
|
||||||
>>> cur.execute("select pg_sleep(10)")
|
>>> cur.execute("select pg_sleep(10)")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user