Skip to content

Commit ef347f2

Browse files
committed
Fixing issue where Database.setReconnect() and Database.setSslVerifyServer() were causing fatal errors
1 parent 576afed commit ef347f2

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ For more in depth changelog, check the Github Commits:
22

33
https://github.com/mariano/node-db-mysql/commits/master
44

5+
0.6.4
6+
-----
7+
* Fixed issue where Database.setReconnect() and Database.setSslVerifyServer() were causing fatal errors
8+
59
0.6.3
610
-----
711
* Exporting Query so its prototype can be extended from JS

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
, "description" : "MySQL database bindings for Node.JS"
33
, "keywords": ["database","db","native","binding","library","plugin","client","mysql","libmysql"]
44
, "homepage" : "http://nodejsdb.org/db-mysql"
5-
, "version" : "0.6.3"
5+
, "version" : "0.6.4"
66
, "engines" : { "node" : ">=0.4.1" }
77
, "maintainers" :
88
[ { "name": "Mariano Iglesias"

src/connection.cc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,26 @@ void node_db_mysql::Connection::setCompress(const bool compress) throw() {
3131
this->compress = compress;
3232
}
3333

34+
void node_db_mysql::Connection::setInitCommand(const std::string& initCommand) throw() {
35+
this->initCommand = initCommand;
36+
}
37+
3438
void node_db_mysql::Connection::setReadTimeout(const uint32_t readTimeout) throw() {
3539
this->readTimeout = readTimeout;
3640
}
3741

38-
void node_db_mysql::Connection::setInitCommand(const std::string& initCommand) throw() {
39-
this->initCommand = initCommand;
42+
void node_db_mysql::Connection::setReconnect(const bool reconnect) throw() {
43+
this->reconnect = reconnect;
4044
}
4145

4246
void node_db_mysql::Connection::setSocket(const std::string& socket) throw() {
4347
this->socket = socket;
4448
}
4549

50+
void node_db_mysql::Connection::setSslVerifyServer(const bool sslVerifyServer) throw() {
51+
this->sslVerifyServer = sslVerifyServer;
52+
}
53+
4654
void node_db_mysql::Connection::setTimeout(const uint32_t timeout) throw() {
4755
this->timeout = timeout;
4856
}

wscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ from os.path import exists
1111

1212
srcdir = "."
1313
blddir = "build"
14-
VERSION = "0.6.3"
14+
VERSION = "0.6.4"
1515

1616
def set_options(opt):
1717
opt.tool_options("compiler_cxx")

0 commit comments

Comments
 (0)