Unfortunately it still crashes with Signal 11 even with a more strict check:
if(parse->commandType == CMD_INSERT) {
best regards,
Ernst-Georg