Multiple diagnostic rows for one violations row
informix_tupleid | objtype | objowner | objname |
---|---|---|---|
1 | C | joe | n104_7 |
1 | I | joe | unq_ssn |
Both rows in the diagnostics table correspond to the same row of the violations table because both of these rows have the value 1 in the informix_tupleid column. The first diagnostic row, however, identifies the constraint violation caused by the INSERT statement that user linda issued, while the second diagnostic row identifies the unique-index violation that the same INSERT statement caused. In this second diagnostic row, the value I in the objtype column stands for a unique-index violation, and the value unq_ssn in the objname column gives the name of the index for which the integrity violation was detected.
For more information about how to set database object modes, see the SET Database Object Mode statement in the HCL Informix® Guide to SQL: Syntax.