{"action":"created","issue":{"url":"https://api.github.com/repos/felixge/node-mysql/issues/990","labels_url":"https://api.github.com/repos/felixge/node-mysql/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/felixge/node-mysql/issues/990/comments","events_url":"https://api.github.com/repos/felixge/node-mysql/issues/990/events","html_url":"https://github.com/felixge/node-mysql/issues/990","id":57348550,"number":990,"title":"error query method","user":{"login":"fixy0909","id":10332510,"avatar_url":"https://avatars.githubusercontent.com/u/10332510?v=3","gravatar_id":"","url":"https://api.github.com/users/fixy0909","html_url":"https://github.com/fixy0909","followers_url":"https://api.github.com/users/fixy0909/followers","following_url":"https://api.github.com/users/fixy0909/following{/other_user}","gists_url":"https://api.github.com/users/fixy0909/gists{/gist_id}","starred_url":"https://api.github.com/users/fixy0909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fixy0909/subscriptions","organizations_url":"https://api.github.com/users/fixy0909/orgs","repos_url":"https://api.github.com/users/fixy0909/repos","events_url":"https://api.github.com/users/fixy0909/events{/privacy}","received_events_url":"https://api.github.com/users/fixy0909/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/felixge/node-mysql/labels/question","name":"question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-11T17:30:02Z","updated_at":"2015-02-11T20:06:37Z","closed_at":"2015-02-11T17:52:07Z","body":"Hello, how i can fix this error?\r\n\r\n`TypeError: Cannot call method 'query' of undefined`\r\n\r\nthis error appear when i call `connection.query(...)` after connect socket.\r\n\r\nCan u help me?\r\n\r\nthanks."},"comment":{"url":"https://api.github.com/repos/felixge/node-mysql/issues/comments/73954401","html_url":"https://github.com/felixge/node-mysql/issues/990#issuecomment-73954401","issue_url":"https://api.github.com/repos/felixge/node-mysql/issues/990","id":73954401,"user":{"login":"fixy0909","id":10332510,"avatar_url":"https://avatars.githubusercontent.com/u/10332510?v=3","gravatar_id":"","url":"https://api.github.com/users/fixy0909","html_url":"https://github.com/fixy0909","followers_url":"https://api.github.com/users/fixy0909/followers","following_url":"https://api.github.com/users/fixy0909/following{/other_user}","gists_url":"https://api.github.com/users/fixy0909/gists{/gist_id}","starred_url":"https://api.github.com/users/fixy0909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fixy0909/subscriptions","organizations_url":"https://api.github.com/users/fixy0909/orgs","repos_url":"https://api.github.com/users/fixy0909/repos","events_url":"https://api.github.com/users/fixy0909/events{/privacy}","received_events_url":"https://api.github.com/users/fixy0909/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T20:06:37Z","updated_at":"2015-02-11T20:06:37Z","body":"dougwilson, i have this line in my code maybe because him error in query \r\n\r\nvar pool  = mysql.createPool({\r\n\r\n\r\ni try  replace \"createPool\" for \"createConnection\" and don't error in query. \r\n\r\ni don't try yet this code in one machine because this code is in my local computer."}}