I didn't think that was possible either. A pair of ideas:
- Was the file restored recently? There has been discussion recently on
this list about unexpected value in an ID column, but I didn't see mention
of a zero value in the ID column.
- If you have a journal attached, can you see the job/program that created
the rows? My thought would be that someone inserted a row specifying zero
as the ID column, but I thought that was impossible too. If it was possible
then an insert with a subselect, or a plain insert, might do it if you
don't specify "default" as the column value (or leave it out of the insert
column list).

HTH
Paul.


On 6 February 2018 at 17:09, Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

I have a DDL table with an identity column defined. Some new rows are
created with a 0 value. I didn't think that was possible. Any ideas?

For reference, here's the column definition:
"ID" INTEGER GENERATED ALWAYS AS IDENTITY (
START WITH 1 INCREMENT BY 1
NO MINVALUE NO MAXVALUE
NO CYCLE NO ORDER
CACHE 20 )
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.