瀏覽代碼

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)
     {