mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-19 21:50:45 +00:00
Bulk update & delete; errors if more than jsut the expected json
This commit is contained in:
@ -257,6 +257,14 @@ public class MemoryRecordStore
|
||||
for(QRecord record : input.getRecords())
|
||||
{
|
||||
Serializable primaryKeyValue = ValueUtils.getValueAsFieldType(primaryKeyField.getType(), record.getValue(primaryKeyField.getName()));
|
||||
|
||||
if(primaryKeyValue == null)
|
||||
{
|
||||
record.addError("Missing value in primary key field");
|
||||
outputRecords.add(record);
|
||||
continue;
|
||||
}
|
||||
|
||||
if(tableData.containsKey(primaryKeyValue))
|
||||
{
|
||||
QRecord recordToUpdate = tableData.get(primaryKeyValue);
|
||||
|
Reference in New Issue
Block a user