1
0
Fork 0

allow references as function parameters

This commit is contained in:
Jan Steemann 2013-12-04 20:37:30 +01:00
parent 44b3237882
commit 26fc85f88c
1 changed files with 4 additions and 0 deletions

View File

@ -150,6 +150,10 @@ static bool CheckArgumentType (TRI_aql_node_t const* parameter,
const param_t* const allowed) {
param_t found = InitParam();
if (parameter->_type == TRI_AQL_NODE_REFERENCE) {
return true;
}
if (parameter->_type == TRI_AQL_NODE_PARAMETER) {
// node is a bind parameter
char* name = TRI_AQL_NODE_STRING(parameter);