Skip to content

Commit d927e7e

Browse files
committed
changed Connection#startupMessage to Connection#startup
1 parent e89aa9c commit d927e7e

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

lib/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ p.connect = function() {
3737
con.connect(this.port, this.host);
3838

3939
con.on('connect', function() {
40-
con.startupMessage({
40+
con.startup({
4141
user: self.user,
4242
database: self.database
4343
});

lib/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ p.connect = function(port, host) {
4747
});
4848
};
4949

50-
p.startupMessage = function(config) {
50+
p.startup = function(config) {
5151
var buffer = new BufferList()
5252
.addInt16(3)
5353
.addInt16(0)

script/create-test-tables.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var people
4343
con.connect(config.port, config.host);
4444
con.on('connect', function() {
4545
console.log('connected');
46-
con.startupMessage({
46+
con.startup({
4747
user: config.user,
4848
database: config.database
4949
});

script/list-db-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var con = new Connection({stream: new net.Stream()});
55
con.connect('5432', 'localhost');
66

77
con.on('connect', function() {
8-
con.startupMessage({
8+
con.startup({
99
user: 'brian',
1010
database: 'postgres'
1111
});

test/integration/connection/test-helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var authConnect = function(username, database, callback) {
1010
var connection = new Connection({stream: new net.Stream()});
1111
connection.connect('5432','localhost');
1212
connection.once('connect', function() {
13-
connection.startupMessage({
13+
connection.startup({
1414
user: username,
1515
database: database
1616
});

test/unit/connection/outbound-sending-tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ assert.recieved = function(stream, buffer) {
1111
};
1212

1313
test("sends startup message", function() {
14-
con.startupMessage({
14+
con.startup({
1515
user: 'brian',
1616
database: 'bang'
1717
});

0 commit comments

Comments
 (0)