add an entity add new attribute effect to buffer
| 615 | |
| 616 | // add an entity add new attribute effect to buffer |
| 617 | void EffectsBuffer_AddEntityAddAttributeEffect |
| 618 | ( |
| 619 | EffectsBuffer *buff, // effect buffer |
| 620 | GraphEntity *entity, // updated entity ID |
| 621 | Attribute_ID attr_id, // updated attribute ID |
| 622 | SIValue value, // value |
| 623 | GraphEntityType entity_type // entity type |
| 624 | ) { |
| 625 | // attribute was added |
| 626 | QueryCtx_GetResultSetStatistics()->properties_set++; |
| 627 | |
| 628 | if(entity_type == GETYPE_NODE) { |
| 629 | EffectsBuffer_AddNodeUpdateEffect(buff, (Node*)entity, attr_id, value); |
| 630 | } else { |
| 631 | EffectsBuffer_AddEdgeUpdateEffect(buff, (Edge*)entity, attr_id, value); |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | // add an entity update attribute effect to buffer |
| 636 | void EffectsBuffer_AddEntityUpdateAttributeEffect |
no test coverage detected