فهرست منبع

HPCC-14835 Can't pass a dataset that includes a set/child dataset to Python

Was incorrectly adding the child object to args BEFORE popping the args
stack.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 9 سال پیش
والد
کامیت
d880b377db
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      plugins/pyembed/pyembed.cpp

+ 2 - 1
plugins/pyembed/pyembed.cpp

@@ -1046,8 +1046,9 @@ protected:
     }
     void pop()
     {
-        addArg(args.getClear());
+        OwnedPyObject arg = args.getClear();
         args.setown((PyObject *) stack.popGet());
+        addArg(arg.getClear());
     }
     void addArg(PyObject *arg)
     {