2
0

Remove Conn.Listen and Conn.Unlisten

Use Conn.Exec instead to listen or unlisten.
This commit is contained in:
Jack Christensen
2019-04-10 11:21:40 -05:00
parent 77a2da2b46
commit b69179cebb
4 changed files with 6 additions and 31 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ pgx can listen to the PostgreSQL notification system with the
WaitForNotification function. It takes a maximum time to wait for a
notification.
err := conn.Listen("channelname")
err := conn.Exec("listen channelname")
if err != nil {
return nil
}