Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Nullable Column with Constraint Error on Insert

$
0
0

When inserting into a table and excluding a value for a nullable column with a foreign key reference, I am getting an error:

 

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

 

However, if I provide a valid foreign key reference in the fourth column, the insert will work just fine.

 

Statement 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE, DATA_SOURCE_SYSTEM_KEY) values ...' successfully executed in 27 ms 54 µs  (server processing time: 2 ms 711 µs) - Rows Affected: 1

 

Why is this happening?


Viewing all articles
Browse latest Browse all 4343

Trending Articles



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