File tree 1 file changed +3
-3
lines changed
Sources/PostgreSQL/Connection
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ extension PostgreSQLConnection {
6
6
handler: @escaping ( String ) throws -> ( )
7
7
) throws -> Future < Void > {
8
8
beforeClose = { conn in
9
- let query = PostgreSQLQuery ( query: " UNLISTEN \( channelName) ; " )
9
+ let query = PostgreSQLQuery ( query: " UNLISTEN \" \ ( channelName) \" ; " )
10
10
return conn. send ( [ . query( query) ] , onResponse: { _ in } )
11
11
}
12
- let query = PostgreSQLQuery ( query: " LISTEN \( channelName) ; " )
12
+ let query = PostgreSQLQuery ( query: " LISTEN \" \ ( channelName) \" ; " )
13
13
return queue. enqueue ( [ . query( query) ] , onInput: { message in
14
14
switch message {
15
15
case let . notificationResponse( notification) :
@@ -23,7 +23,7 @@ extension PostgreSQLConnection {
23
23
24
24
public func notify(
25
25
_ channelName: String , message: String ) throws -> Future < Void > {
26
- let query = PostgreSQLQuery ( query: " NOTIFY \( channelName) , ' \( message) '; " )
26
+ let query = PostgreSQLQuery ( query: " NOTIFY \" \ ( channelName) \" , ' \( message) '; " )
27
27
return send ( [ . query( query) ] ) . map ( to: Void . self, { _ in } )
28
28
}
29
29
}
You can’t perform that action at this time.
0 commit comments