{"action":"created","issue":{"url":"https://api.github.com/repos/felixge/node-mysql/issues/1058","labels_url":"https://api.github.com/repos/felixge/node-mysql/issues/1058/labels{/name}","comments_url":"https://api.github.com/repos/felixge/node-mysql/issues/1058/comments","events_url":"https://api.github.com/repos/felixge/node-mysql/issues/1058/events","html_url":"https://github.com/felixge/node-mysql/issues/1058","id":68183518,"number":1058,"title":"mysql/lib/protocol/SqlString.js:71 TypeError: undefined is not a function","user":{"login":"reggi","id":296798,"avatar_url":"https://avatars.githubusercontent.com/u/296798?v=3","gravatar_id":"","url":"https://api.github.com/users/reggi","html_url":"https://github.com/reggi","followers_url":"https://api.github.com/users/reggi/followers","following_url":"https://api.github.com/users/reggi/following{/other_user}","gists_url":"https://api.github.com/users/reggi/gists{/gist_id}","starred_url":"https://api.github.com/users/reggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reggi/subscriptions","organizations_url":"https://api.github.com/users/reggi/orgs","repos_url":"https://api.github.com/users/reggi/repos","events_url":"https://api.github.com/users/reggi/events{/privacy}","received_events_url":"https://api.github.com/users/reggi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-13T20:13:05Z","updated_at":"2015-04-13T20:22:00Z","closed_at":null,"body":"```\r\n/Users/thomas/Desktop/project/node_modules/mysql/lib/protocol/SqlString.js:71\r\n  return sql.replace(/\\?\\??/g, function(match) {\r\n             ^\r\nTypeError: undefined is not a function\r\n    at Object.SqlString.format (/Users/thomas/Desktop/wordpress-shopify-importer/node_modules/mysql/lib/protocol/SqlString.js:71:14)\r\n    at Connection.format (/Users/thomas/Desktop/wordpress-shopify-importer/node_modules/mysql/lib/Connection.js:247:20)\r\n    at Connection.query (/Users/thomas/Desktop/wordpress-shopify-importer/node_modules/mysql/lib/Connection.js:183:20)\r\n    at Object.<anonymous> (/Users/thomas/Desktop/wordpress-shopify-importer/index.js:14:12)\r\n    at Module._compile (module.js:410:26)\r\n    at Object.Module._extensions..js (module.js:428:10)\r\n    at Module.load (module.js:335:32)\r\n    at Function.Module._load (module.js:290:12)\r\n    at Function.Module.runMain (module.js:451:10)\r\n    at startup (node.js:124:18)\r\n```"},"comment":{"url":"https://api.github.com/repos/felixge/node-mysql/issues/comments/92487582","html_url":"https://github.com/felixge/node-mysql/issues/1058#issuecomment-92487582","issue_url":"https://api.github.com/repos/felixge/node-mysql/issues/1058","id":92487582,"user":{"login":"reggi","id":296798,"avatar_url":"https://avatars.githubusercontent.com/u/296798?v=3","gravatar_id":"","url":"https://api.github.com/users/reggi","html_url":"https://github.com/reggi","followers_url":"https://api.github.com/users/reggi/followers","following_url":"https://api.github.com/users/reggi/following{/other_user}","gists_url":"https://api.github.com/users/reggi/gists{/gist_id}","starred_url":"https://api.github.com/users/reggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reggi/subscriptions","organizations_url":"https://api.github.com/users/reggi/orgs","repos_url":"https://api.github.com/users/reggi/repos","events_url":"https://api.github.com/users/reggi/events{/privacy}","received_events_url":"https://api.github.com/users/reggi/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T20:22:00Z","updated_at":"2015-04-13T20:22:00Z","body":"This is all I've got. I was trying to hide what I was working on. Whoops.\r\n\r\n```\r\nvar mysql = require('mysql')\r\nvar options = {\r\n  host: process.env.MYSQL_HOST,\r\n  user: process.env.MYSQL_USER,\r\n  password: process.env.MYSQL_PASSWORD,\r\n  database: process.env.MYSQL_DATABASE,\r\n  charset: \"utf8\"\r\n}\r\n\r\nvar connection = mysql.createConnection(options)\r\n\r\nconnection.connect()\r\n\r\nconnection.query(function(err, rows, fields) {\r\n  if (err) throw err\r\n  console.log(rows.length)\r\n});\r\n\r\nconnection.end()\r\n\r\n```"}}