Skip to content

Commit 7244e25

Browse files
committed
New release
1 parent 1ed4787 commit 7244e25

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

CHANGELOG

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

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

5+
0.5.8
6+
-----
7+
* Database.connect() now takes an error-first callback
8+
* Fixing compilation issues in CentOS
9+
510
0.5.7
611
-----
712
* [API CHANGE] Query.execute() callback now takes error as its first argument

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,18 @@ you specified the MYSQL_CONFIG environment var, install with npm:
2828
user: 'root',
2929
password: 'password',
3030
database: 'node'
31-
}).on('ready', function() {
31+
}).connect(function(error) {
32+
if (error) {
33+
return console.log("CONNECTION ERROR: " + error);
34+
}
35+
3236
this.query().select('*').from('users').execute(function(error, rows) {
3337
if (error) {
34-
console.log('ERROR: ' + error);
35-
return;
38+
return console.log('ERROR: ' + error);
3639
}
3740
console.log(rows.length + ' ROWS');
3841
});
39-
}).connect();
42+
});
4043

4144
## LICENSE ##
4245

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.5.7"
5+
, "version" : "0.5.8"
66
, "engines" : { "node" : ">=0.4.1" }
77
, "maintainers" :
88
[ { "name": "Mariano Iglesias"

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.5.7"
14+
VERSION = "0.5.8"
1515

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

0 commit comments

Comments
 (0)