{"action":"closed","issue":{"url":"https://api.github.com/repos/sequelize/sequelize/issues/5383","repository_url":"https://api.github.com/repos/sequelize/sequelize","labels_url":"https://api.github.com/repos/sequelize/sequelize/issues/5383/labels{/name}","comments_url":"https://api.github.com/repos/sequelize/sequelize/issues/5383/comments","events_url":"https://api.github.com/repos/sequelize/sequelize/issues/5383/events","html_url":"https://github.com/sequelize/sequelize/issues/5383","id":132374228,"number":5383,"title":"Column names with '","user":{"login":"jkgeyti","id":617033,"avatar_url":"https://avatars.githubusercontent.com/u/617033?v=3","gravatar_id":"","url":"https://api.github.com/users/jkgeyti","html_url":"https://github.com/jkgeyti","followers_url":"https://api.github.com/users/jkgeyti/followers","following_url":"https://api.github.com/users/jkgeyti/following{/other_user}","gists_url":"https://api.github.com/users/jkgeyti/gists{/gist_id}","starred_url":"https://api.github.com/users/jkgeyti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkgeyti/subscriptions","organizations_url":"https://api.github.com/users/jkgeyti/orgs","repos_url":"https://api.github.com/users/jkgeyti/repos","events_url":"https://api.github.com/users/jkgeyti/events{/privacy}","received_events_url":"https://api.github.com/users/jkgeyti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T09:51:38Z","updated_at":"2016-02-10T16:29:40Z","closed_at":"2016-02-10T16:29:40Z","body":"Calling `.query()` fails in `Result.addFields` (line 98, `this.RowCtor = Function(\"parsers\", \"rowData\", ctorBody);`) fails, if a column name contains `'`.\r\n\r\nExample, where I'm querying a table with a column named `{u'geometry': {u'type': u'MultiPolygon', u'coordinates': [[[` (actually using this as a column name is caused by a bug on my part, but that's irrelevant to this bug report.):\r\n\r\n```\r\nExecuting (default): SELECT * FROM usgeo LIMIT 1\r\nundefined:6\r\nthis['{u\\'geometry': {u'type': u'MultiPolygon', u'coordinates': [[['] = rowData[2] == null ? null : parsers[2](rowData[2]);\r\n                   ^\r\n\r\nSyntaxError: Unexpected token :\r\n    at Function (native)\r\n    at Result.addFields ([REDACTED...]/node_modules/pg/lib/result.js:98:20)\r\n    at Query.handleRowDescription ([REDACTED...]/node_modules/pg/lib/query.js:54:16)\r\n    at null.<anonymous> ([REDACTED...]/node_modules/pg/lib/client.js:103:24)\r\n    at emitOne (events.js:77:13)\r\n    at emit (events.js:169:7)\r\n    at Socket.<anonymous> ([REDACTED...]/node_modules/pg/lib/connection.js:109:12)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at readableAddChunk (_stream_readable.js:146:16)\r\n    at Socket.Readable.push (_stream_readable.js:110:10)\r\n    at TCP.onread (net.js:523:20)\r\n```"}}