Changeset: b0ac94755650 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b0ac94755650
Modified Files:
        sql/backends/monet5/UDF/pyapi/pyloader.c
Branch: default
Log Message:

You cannot use function defined in the SQL module outside of it.
We only need list_length here.


diffs (18 lines):

diff --git a/sql/backends/monet5/UDF/pyapi/pyloader.c 
b/sql/backends/monet5/UDF/pyapi/pyloader.c
--- a/sql/backends/monet5/UDF/pyapi/pyloader.c
+++ b/sql/backends/monet5/UDF/pyapi/pyloader.c
@@ -35,6 +35,14 @@ str _loader_init(void)
        return msg;
 }
 
+static int
+list_length(list *l)
+{
+       if (l)
+               return l->cnt;
+       return 0;
+}
+
 str 
 PYFUNCNAME(PyAPIevalLoader)(Client cntxt, MalBlkPtr mb, MalStkPtr stk, 
InstrPtr pci) {
     sql_func * sqlfun;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to