Bug ID domain?

Sean McAfee etzwane at schwag.org
Thu Apr 24 22:09:36 UTC 2003


Hi, all--

What is the domain of possible values for bug IDs?  I get the idea that IDs
are positive integers, but is this codified somewhere?

I ask because I've just realized I haven't yet allowed for storage of field
default values in my custom fields schema.  For a table like this:

cf_integer
----------
bug_id integer not null,
field_id integer not null,
value integer,
primary key (bug_id, field_id)

...I'd like to use a special bug_id to store the default value for a given
field_id.  NULL is out, unfortunately, because I need that primary key.
Would using a number like 0 or -1 be safe?


-- 
Sean McAfee -- etzwane at schwag.org



More information about the developers mailing list