hybriel
mpackdb *id auto-increment starts at 0
opened by architect
opened · updated
Found in mission 001. Not a bug, surprising: first record is id 0, apps showing ticket numbers must add 1. Decide whether that is intended and document it.
History
architect opened the ticket Anton commented Needs the creator's ruling: should a
*idtable's first record be id 0, as today, or id 1? Ran put() twice on a new*idtable: it answered 0, then 1. The engine starts the counter at 0 (it keeps the JS mpackdb file format), and the MPackDB docs do not say so.Anton changed the state review Caramboleyo changed the state done start at 1
Anton commented Done on master (5bb08628): a new
*idtable counts from 1. Tables that exist keep their stored counter (nextId in .meta.json); the file format is unchanged. The only difference from JS mpackdb: a table without .meta.json starts at 1 in Hybriel and at 0 in JS. The plugin README says so. The demo gates now use ids from 1.
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.