Skip to content

Commit 3d96333

Browse files
authored
Merge pull request #1011 from anandkumarpatel/patch-1
nodejs/macos example:Add missing connect statement
2 parents fd96b06 + ae3693b commit 3d96333

3 files changed

Lines changed: 14 additions & 5 deletions

File tree

samples/tutorials/node.js/macOS/SqlServerColumnstoreSample/columnstore.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,7 @@ connection.on('connect', function(err) {
4444
exec('SELECT SUM(Price) FROM Table_with_5M_rows');
4545
},
4646
]);
47-
});
47+
});
48+
49+
// Initialize the connection.
50+
connection.connect();

samples/tutorials/node.js/macOS/SqlServerSample/connect.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ connection.on('connect', function(err) {
2020
} else {
2121
console.log('Connected');
2222
}
23-
});
23+
});
24+
25+
// Initialize the connection.
26+
connection.connect();

samples/tutorials/node.js/macOS/SqlServerSample/crud.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ connection.on('connect', function(err) {
123123
} else {
124124
console.log("Done!");
125125
}
126-
}
127-
)
126+
})
128127
}
129-
});
128+
});
129+
130+
131+
// Initialize the connection.
132+
connection.connect();

0 commit comments

Comments
 (0)