mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
renamed 'message' to 'payload'
This commit is contained in:
parent
16352f9156
commit
09d8e5d1e7
@ -318,7 +318,7 @@ p.parse2 = function(msg) {
|
||||
p.parseA = function(msg) {
|
||||
msg.processId = this.parseInt32();
|
||||
msg.channel = this.parseCString();
|
||||
msg.message = this.parseCString();
|
||||
msg.payload = this.parseCString();
|
||||
return msg;
|
||||
};
|
||||
|
||||
|
||||
@ -98,11 +98,11 @@ buffers.bindComplete = function() {
|
||||
return new BufferList().join(true, '2');
|
||||
};
|
||||
|
||||
buffers.notificationResponse = function(id, channel, message) {
|
||||
buffers.notificationResponse = function(id, channel, payload) {
|
||||
return new BufferList()
|
||||
.addInt32(id)
|
||||
.addCString(channel)
|
||||
.addCString(message)
|
||||
.addCString(payload)
|
||||
.join(true, 'A')
|
||||
};
|
||||
|
||||
|
||||
@ -158,7 +158,7 @@ var expectedNotificationResponseMessage = {
|
||||
id: 'A',
|
||||
processId: 4,
|
||||
channel: 'hi',
|
||||
message: 'boom'
|
||||
payload: 'boom'
|
||||
};
|
||||
|
||||
test('Connection', function() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user