{"action":"created","issue":{"url":"https://api.github.com/repos/robconery/massive-js/issues/307","repository_url":"https://api.github.com/repos/robconery/massive-js","labels_url":"https://api.github.com/repos/robconery/massive-js/issues/307/labels{/name}","comments_url":"https://api.github.com/repos/robconery/massive-js/issues/307/comments","events_url":"https://api.github.com/repos/robconery/massive-js/issues/307/events","html_url":"https://github.com/robconery/massive-js/issues/307","id":173632843,"number":307,"title":"Error: null value in column \"id\" violates not-null constraint","user":{"login":"digitalysin","id":399720,"avatar_url":"https://avatars.githubusercontent.com/u/399720?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalysin","html_url":"https://github.com/digitalysin","followers_url":"https://api.github.com/users/digitalysin/followers","following_url":"https://api.github.com/users/digitalysin/following{/other_user}","gists_url":"https://api.github.com/users/digitalysin/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalysin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalysin/subscriptions","organizations_url":"https://api.github.com/users/digitalysin/orgs","repos_url":"https://api.github.com/users/digitalysin/repos","events_url":"https://api.github.com/users/digitalysin/events{/privacy}","received_events_url":"https://api.github.com/users/digitalysin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-28T06:51:11Z","updated_at":"2016-08-28T14:11:42Z","closed_at":"2016-08-28T14:11:42Z","body":"products table\r\n  id : primary key , auto inc, not null\r\n  name: text\r\n\r\n```javascript\r\ndb.products.insert([ { name: \"P1\" }, { name: \"P2\" }], (error, rows) => {\r\n\r\n})\r\n```\r\n\r\ngot this error\r\n\r\n```javascript\r\n{ Error: null value in column \"id\" violates not-null constraint\r\n    at DB.query (/Users/h/Documents/j/p/node_modules/massive/lib/runner.js:22:11)\r\n    at Table.insert (/Users/h/Documents/j/p/node_modules/massive/lib/table.js:45:11)\r\n    at repl:1:13\r\n    at sigintHandlersWrap (vm.js:22:35)\r\n    at sigintHandlersWrap (vm.js:96:12)\r\n    at ContextifyScript.Script.runInThisContext (vm.js:21:12)\r\n    at REPLServer.defaultEval (repl.js:313:29)\r\n    at bound (domain.js:280:14)\r\n    at REPLServer.runBound [as eval] (domain.js:293:12)\r\n    at REPLServer.<anonymous> (repl.js:503:10)\r\n  message: 'null value in column \"id\" violates not-null constraint',\r\n  code: '23502',\r\n  detail: 'Failing row contains (null, 10, null, null, null, null, null, null).',\r\n  length: 202,\r\n  severity: 'ERROR',\r\n  hint: undefined,\r\n  position: undefined,\r\n  internalPosition: undefined,\r\n  internalQuery: undefined,\r\n  where: undefined,\r\n  schema: 'public',\r\n  table: 'products',\r\n  column: 'id',\r\n  dataType: undefined,\r\n  constraint: undefined,\r\n  file: 'execMain.c',\r\n  line: '1699',\r\n  routine: 'ExecConstraints' }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/robconery/massive-js/issues/comments/242976981","html_url":"https://github.com/robconery/massive-js/issues/307#issuecomment-242976981","issue_url":"https://api.github.com/repos/robconery/massive-js/issues/307","id":242976981,"user":{"login":"digitalysin","id":399720,"avatar_url":"https://avatars.githubusercontent.com/u/399720?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalysin","html_url":"https://github.com/digitalysin","followers_url":"https://api.github.com/users/digitalysin/followers","following_url":"https://api.github.com/users/digitalysin/following{/other_user}","gists_url":"https://api.github.com/users/digitalysin/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalysin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalysin/subscriptions","organizations_url":"https://api.github.com/users/digitalysin/orgs","repos_url":"https://api.github.com/users/digitalysin/repos","events_url":"https://api.github.com/users/digitalysin/events{/privacy}","received_events_url":"https://api.github.com/users/digitalysin/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T14:11:42Z","updated_at":"2016-08-28T14:11:42Z","body":"my mistake, forgot to add sequence."}}
{"actor":{"display_login":"digitalysin"}}