From d266d6d0fa63447d3ec6df493f5e222b6e2e7ca6 Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Mon, 10 Sep 2018 11:39:11 -0600 Subject: [PATCH] Adjust sample now that DML returning variables return an array. --- samples/DMLReturningMultipleRows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/DMLReturningMultipleRows.py b/samples/DMLReturningMultipleRows.py index 6a0ba07..3b34afd 100644 --- a/samples/DMLReturningMultipleRows.py +++ b/samples/DMLReturningMultipleRows.py @@ -1,5 +1,5 @@ #------------------------------------------------------------------------------ -# Copyright 2017, Oracle and/or its affiliates. All rights reserved. +# Copyright 2017, 2018, Oracle and/or its affiliates. All rights reserved. # # Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved. # @@ -43,6 +43,6 @@ cursor.execute(""" intCol = intCol, stringCol = stringCol) print("Data returned:") -for intVal, stringVal in zip(intCol.values, stringCol.values): +for intVal, stringVal in zip(intCol.getvalue(), stringCol.getvalue()): print(tuple([intVal, stringVal]))