OSDN Git Service
(root)
/
webchat
/
WebChat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
接続時にエラーが発生しても何も表示されないバグを修正した
[webchat/WebChat.git]
/
mysql_pool.js
diff --git
a/mysql_pool.js
b/mysql_pool.js
index
95ff102
..
071b81e
100644
(file)
--- a/
mysql_pool.js
+++ b/
mysql_pool.js
@@
-26,8
+26,9
@@
module.exports = function(param)
max : 10,
create : function(cb){
var connection = mysql.createConnection(param);
- connection.connect();
- cb(null,connection);
+ connection.connect(function(err){
+ cb(err,connection);
+ });
},
destroy : function(db){
db.end();