This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
Shape the future of IBM!
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Search existing ideas
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updateson them if they matter to you. If you can't find what you are looking for,
Post your ideas
Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,
Post an idea
Upvote ideas that matter most to you
Get feedback from the IBM team to refine your idea
Specific links you will want to bookmark for future use
In error message display actual table's column name that is violating NOT NULL definition instead of outputing "TBSPACEID=2, TABLEID=5, COLNO=0"
I am constantly running into this problem when inserting null values into not null table column. Getting out tablespaceid, tableid and colno is time consuming and annoying to constantly check the column name that is defined not null, but null values are inserted.
Very simple sample to demonstrate:
db2 "create table test.mytab (a int not null)"
db2 "insert into test.mytab values (null)"
Error is returned:
SQL0407N Assignment of a NULL value to a NOT NULL column "TBSPACEID=2,
TABLEID=5, COLNO=0" is not allowed. SQLSTATE=23502
From help there is info to execute command:
SELECT C.TABSCHEMA, C.TABNAME,
FROM SYSCAT.TABLES AS T,
SYSCAT.COLUMNS AS C
WHERE T.TBSPACEID = n1
AND T.TABLEID = n2
AND C.COLNO = n3
AND C.TABSCHEMA = T.TABSCHEMA
AND C.TABNAME = T.TABNAME
I need to type in n1, n2 and n3 values and execute the SQL, to get TEST.MYTAB.A has NOT NULL definition, but NULL is inserted into it.
Please instead of writing TABLESPACEID=2, TABLEID=5, COLNO=0 write actual column name.
In this case please output error message:
SQL0407N Assignment of a NULL value to a NOT NULL column
TEST.MYTAB.A is not allowed. SQLSTATE=23502
Do not place IBM confidential, company confidential, or personal information into any field.