mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-10-31 15:57:31 +03:00 
			
		
		
		
	Notify example should pop the oldest message in conn.notifies, not the newest.
This commit is contained in:
		
							parent
							
								
									526c9ea763
								
							
						
					
					
						commit
						fb487ff244
					
				|  | @ -291,7 +291,7 @@ something to read:: | |||
|         else: | ||||
|             conn.poll() | ||||
|             while conn.notifies: | ||||
|                 notify = conn.notifies.pop() | ||||
|                 notify = conn.notifies.pop(0) | ||||
|                 print "Got NOTIFY:", notify.pid, notify.channel, notify.payload | ||||
| 
 | ||||
| Running the script and executing a command such as :sql:`NOTIFY test, 'hello'` | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user