{"push_id":806768579,"size":3,"distinct_size":2,"ref":"refs/heads/master","head":"b2d47940fac9be8b0d6f72ccb7985c02223a39b1","before":"80decb42faf5a4415d25d650ab8d3dd6a8a41d24","commits":[{"sha":"3e2e2eae3af9d4e643bc6c40d765e1b39355814c","author":{"email":"4c5f8e4795edfe281d413c228262cb32c0fa5c83@gmail.com","name":"eugwne"},"message":"LUA_REGISTRYINDEX oid  int->string keys\n\noid integer changed to \"oid_%\" string keys","distinct":false,"url":"https://api.github.com/repos/eugwne/pllua_unstable/commits/3e2e2eae3af9d4e643bc6c40d765e1b39355814c"},{"sha":"e65adddab3f2b1202e67dd7bf6d802c6a89ba95a","author":{"email":"4c5f8e4795edfe281d413c228262cb32c0fa5c83@gmail.com","name":"eugwne"},"message":"Merge branch 'oid_regindex'","distinct":true,"url":"https://api.github.com/repos/eugwne/pllua_unstable/commits/e65adddab3f2b1202e67dd7bf6d802c6a89ba95a"},{"sha":"b2d47940fac9be8b0d6f72ccb7985c02223a39b1","author":{"email":"4c5f8e4795edfe281d413c228262cb32c0fa5c83@gmail.com","name":"eugwne"},"message":"subtransaction function accepts arguments, plan.execute uses returning results\n\nuse case from pg demo subtransactions:\n\ndo $$\nlocal p = server.prepare(\"UPDATE accounts SET balance = balance + $2 WHERE account_name = $1 returning account_name\", {\"text\",\"int4\"})\n\nlocal f = function(from, to, amount)\n  local x\n  x = p:execute{from, (-1)*amount}\n  assert(x, 'error transfer from '..from)\n\n  x = p:execute{to, amount}\n  assert(x, 'error transfer to '..to)\n\n  return true\nend\n\nlocal status, err = subtransaction(f, 'mary', 'joe', 30)\n\nprint(status, err)\n$$ LANGUAGE pllua;\n\nassert triggers if there is no person with such a name","distinct":true,"url":"https://api.github.com/repos/eugwne/pllua_unstable/commits/b2d47940fac9be8b0d6f72ccb7985c02223a39b1"}]}