Guest User

Untitled

a guest
Jan 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. db.run(`begin transaction;
  2. replace into players (user_id, role) values ($id, $role);
  3. update signed_up_users set finalised = 1 where user_id = $id;
  4. commit;`, { $id: id, $role: role}, err=>{
  5. if (err) {throw err;}
  6. });
  7.  
  8. Error: SQLITE_RANGE: bind or column index out of range
  9. --> in Database#run('begin transaction;n replace into players (user_id, role) values (?, ?);n update signed_up_users set finalised = 1 where user_id = ?;n commit;', [ '123', 'INNOCENT', '123' ], [Function])
  10. at Object.exports.finalise_user (C:whateverfile.js)
  11. at user.resolve_to_id.then.id (C:whateverfile.js:52:14)
  12. at <anonymous>
  13. at process._tickCallback (internal/process/next_tick.js:188:7)
Add Comment
Please, Sign In to add comment