File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#------------------------------------------------------------------------------
2- # Copyright (c) 2016, 2017 , Oracle and/or its affiliates. All rights reserved.
2+ # Copyright (c) 2016, 2018 , Oracle and/or its affiliates. All rights reserved.
33#------------------------------------------------------------------------------
44
55#------------------------------------------------------------------------------
99# procedure.
1010#
1111# This feature is new in cx_Oracle 5.3 and is only available in Oracle
12- # Database 12.1 and higher.
12+ # Database 12.1 and higher. The ability to get the collection as a dictionary
13+ # is new in cx_Oracle 7.0.
1314#------------------------------------------------------------------------------
1415
1516from __future__ import print_function
3940# show the values as a simple list
4041print ("Values of collection as list:" )
4142print (obj .aslist ())
43+ print ()
44+
45+ # show the values as a simple dictionary
46+ print ("Values of collection as dictionary:" )
47+ print (obj .asdict ())
48+ print ()
4249
You can’t perform that action at this time.
0 commit comments