{"issue":{"title":"2014 error when calling multiple stored procedures","user":{"login":"gitawego","id":438120,"url":"https://api.github.com/users/gitawego","gravatar_id":"3f78cc690fb952fc09f9fa408c546b35","avatar_url":"https://secure.gravatar.com/avatar/3f78cc690fb952fc09f9fa408c546b35?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-26T12:15:58Z","milestone":null,"state":"open","updated_at":"2011-12-26T12:15:58Z","labels":[],"id":2657940,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/Sannis/node-mysql-libmysqlclient/issues/108","body":"I got 2014 error when calling a stored procedure in multiple times:\r\nI have script:\r\n```javascript\r\ntest = function(id,callback){\r\n  conn.query('CALL getValues('+id+')',function(err,result){\r\n  while (conn.multiMoreResultsSync()) {\r\n                        conn.multiNextResultSync();\r\n                    }\r\n  callback(result.fetchAllSync());\r\n});\r\n};\r\n['test1','test2','test3'].forEach(function(id){\r\n  test(id,function(res){\r\n   console.log(res);  \r\n});\r\n});\r\n```\r\nIf I execute this code, I'm getting 2014 error.\r\nany idea ?","number":108,"url":"https://api.github.com/repos/Sannis/node-mysql-libmysqlclient/issues/108","comments":0,"assignee":null},"action":"opened"}