Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Nullable Column with Constraint Error on Insert

$
0
0

I have a table which has a nullable column (ie, Null is allowed), but which also has a foreign key constraint. During an insert, I am getting an error when I leave out the fourth column, which I presume would make the column null:

 

Could not execute 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE) values (30,1,'VALUE 30-1')' in 96 ms 467 µs . SAP DBTech JDBC: [461]: row locked by other transaction:

 

However, if I were to add the a key for the fourth column, DATA_SOURCE_SYSTEM_KEY, referencing a valid row, the insert will work.

 

Why would this happen?


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>