Type check procedure arguments in CALL clause

Summary: Depends on D2571

Reviewers: mferencevic, ipaljak

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2572
This commit is contained in:
Teon Banek
2019-11-26 13:42:37 +01:00
parent e1399582b8
commit d71f1bfa35
3 changed files with 51 additions and 7 deletions

View File

@@ -12,8 +12,9 @@
// In case of memory errors, this function will report them and finish
// executing.
//
// The procedure can be invoked in openCypher using the following call:
// CALL example.procedure(1, 2, 3) YIELD args, result;
// The procedure can be invoked in openCypher using the following calls:
// CALL example.procedure(1, 2) YIELD args, result;
// CALL example.procedure(1) YIELD args, result;
// Naturally, you may pass in different arguments or yield less fields.
static void procedure(const struct mgp_list *args,
const struct mgp_graph *graph, struct mgp_result *result,