소스 검색

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