{"action":"opened","issue":{"url":"https://api.github.com/repos/OraOpenSource/orawrap/issues/11","labels_url":"https://api.github.com/repos/OraOpenSource/orawrap/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/OraOpenSource/orawrap/issues/11/comments","events_url":"https://api.github.com/repos/OraOpenSource/orawrap/issues/11/events","html_url":"https://github.com/OraOpenSource/orawrap/issues/11","id":111987591,"number":11,"title":"problem when executing method execute with 3 parameters plus then , catch","user":{"login":"pntone","id":12120765,"avatar_url":"https://avatars.githubusercontent.com/u/12120765?v=3","gravatar_id":"","url":"https://api.github.com/users/pntone","html_url":"https://github.com/pntone","followers_url":"https://api.github.com/users/pntone/followers","following_url":"https://api.github.com/users/pntone/following{/other_user}","gists_url":"https://api.github.com/users/pntone/gists{/gist_id}","starred_url":"https://api.github.com/users/pntone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pntone/subscriptions","organizations_url":"https://api.github.com/users/pntone/orgs","repos_url":"https://api.github.com/users/pntone/repos","events_url":"https://api.github.com/users/pntone/events{/privacy}","received_events_url":"https://api.github.com/users/pntone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-17T22:10:04Z","updated_at":"2015-10-17T22:10:04Z","closed_at":null,"body":"The problem in the function \r\nConnectionManager.prototype.execute = function(a1, a2, a3, a4) ,  file connectionmanager.js.\r\nProblem exist when executing promise with 3 parameters (sql, binds, opts)  .\r\nNeed the same behavior like  case with 2 arguments.\r\n\r\n                case 3:\r\n                    sql = a1;\r\n                    bindParams = a2;\r\n//                    cb = a3;              // original line \r\n// new lines \r\n                   switch (typeof a3) {\r\n                        case 'object':\r\n                            opts = a3;\r\n                            break;\r\n                        case 'function':\r\n                            cb = a3;\r\n                            break;\r\n                    }\r\n// end of new lines \r\n                    break;\r\n"}}