Module: kamailio
Branch: master
Commit: 0edc8e3ab127feca8847987612669cc8782aff23
URL:
https://github.com/kamailio/kamailio/commit/0edc8e3ab127feca8847987612669cc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-15T11:50:58+02:00
app_sqlang: for now return NULL for array and map kemi results
- free result structure
---
Modified: src/modules/app_sqlang/app_sqlang_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0edc8e3ab127feca8847987612669cc…
Patch:
https://github.com/kamailio/kamailio/commit/0edc8e3ab127feca8847987612669cc…
---
diff --git a/src/modules/app_sqlang/app_sqlang_api.c
b/src/modules/app_sqlang/app_sqlang_api.c
index 22d2ce6ff3..192e059e2e 100644
--- a/src/modules/app_sqlang/app_sqlang_api.c
+++ b/src/modules/app_sqlang/app_sqlang_api.c
@@ -898,6 +898,16 @@ int sr_kemi_sqlang_return_xval(HSQUIRRELVM J, sr_kemi_t *ket,
sr_kemi_xval_t *rx
sq_pushbool(J, SRSQLANG_FALSE);
}
return 1;
+ case SR_KEMIP_ARRAY:
+ LM_ERR("unsupported return type: array\n");
+ sr_kemi_xval_free(rx);
+ sqlang_pushstring(J, NULL);
+ return 1;
+ case SR_KEMIP_DICT:
+ LM_ERR("unsupported return type: map\n");
+ sr_kemi_xval_free(rx);
+ sqlang_pushstring(J, NULL);
+ return 1;
case SR_KEMIP_XVAL:
/* unknown content - return false */
sq_pushbool(J, SRSQLANG_FALSE);