mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	fix wait_select sample to be extras not extensions
				
					
				
			This commit is contained in:
		
							parent
							
								
									0e69b4de18
								
							
						
					
					
						commit
						c743da0405
					
				| 
						 | 
					@ -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