Sannis/node-mysql-libmysqlclient — Issue #108: 2014 error when calling multiple stored procedures
Author: gitawego
Created: 2011-12-26 12:15:58+00:00
State: open

I got 2014 error when calling a stored procedure in multiple times:
I have script:
```javascript
test = function(id,callback){
conn.query('CALL getValues('+id+')',function(err,result){
while (conn.multiMoreResultsSync()) {
conn.multiNextResultSync();
}
callback(result.fetchAllSync());
});
};
['test1','test2','test3'].forEach(function(id){
test(id,function(res){
console.log(res);
});
});
```
If I execute this code, I'm getting 2014 error.
any idea ?