Skip to content

Commit 550d326

Browse files
Add comment to each sample indicating minimum version of cx_Oracle that is
required in order to run it.
1 parent 7dca60b commit 550d326

16 files changed

+31
-0
lines changed

samples/AdvancedQueuing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# AdvancedQueuing.py
1212
# This script demonstrates how to use advanced queuing using cx_Oracle. It
1313
# creates a simple type and enqueues and dequeues a few objects.
14+
#
15+
# This script requires cx_Oracle 5.3 and higher.
1416
#------------------------------------------------------------------------------
1517

1618
from __future__ import print_function

samples/AppContext.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# This script demonstrates the use of application context. Application
1313
# context is available within logon triggers and can be retrieved by using the
1414
# function sys_context().
15+
#
16+
# This script requires cx_Oracle 5.3 and higher.
1517
#------------------------------------------------------------------------------
1618

1719
from __future__ import print_function

samples/DRCP.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#
2525
# There is no difference in how a connection is used once it has been
2626
# established.
27+
#
28+
# This script requires cx_Oracle 5.0 and higher.
2729
#------------------------------------------------------------------------------
2830

2931
from __future__ import print_function

samples/DatabaseChangeNotification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# feature that is available in Oracle 10g Release 2. Once this script is
1414
# running, use another session to insert, update or delete rows from the table
1515
# cx_Oracle.TestTempTable and you will see the notification of that change.
16+
#
17+
# This script requires cx_Oracle 5.3 and higher.
1618
#------------------------------------------------------------------------------
1719

1820
from __future__ import print_function

samples/DatabaseShutdown.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# This script demonstrates shutting down a database using Python. It is only
1313
# possible in Oracle 10g Release 2 and higher. The connection used assumes that
1414
# the environment variable ORACLE_SID has been set.
15+
#
16+
# This script requires cx_Oracle 4.3 and higher.
1517
#------------------------------------------------------------------------------
1618

1719
import cx_Oracle

samples/DatabaseStartup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# This script demonstrates starting up a database using Python. It is only
1313
# possible in Oracle 10g Release 2 and higher. The connection used assumes that
1414
# the environment variable ORACLE_SID has been set.
15+
#
16+
# This script requires cx_Oracle 4.3 and higher.
1517
#------------------------------------------------------------------------------
1618

1719
import cx_Oracle

samples/Editioning.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# Database 11.2 and higher. See the Oracle documentation on the subject for
1414
# additional information. Adjust the contants at the top of the script for
1515
# your own database as needed.
16+
#
17+
# This script requires cx_Oracle 5.3 and higher.
1618
#------------------------------------------------------------------------------
1719

1820
from __future__ import print_function

samples/ImplicitResults.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# This script demonstrates the use of the 12.1 feature that allows PL/SQL
1313
# procedures to return result sets implicitly, without having to explicitly
1414
# define them.
15+
#
16+
# This script requires cx_Oracle 5.3 and higher.
1517
#------------------------------------------------------------------------------
1618

1719
from __future__ import print_function

samples/InsertGeometry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# InsertGeometry.py
1212
# This script demonstrates the ability to create Oracle objects (this example
1313
# uses SDO_GEOMETRY) and insert them into a table.
14+
#
15+
# This script requires cx_Oracle 5.3 and higher.
1416
#------------------------------------------------------------------------------
1517

1618
from __future__ import print_function

samples/QueryChangeNotification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# feature that is available in Oracle 11g. Once this script is running, use
1414
# another session to insert, update or delete rows from the table
1515
# cx_Oracle.TestTempTable and you will see the notification of that change.
16+
#
17+
# This script requires cx_Oracle 5.3 and higher.
1618
#------------------------------------------------------------------------------
1719

1820
from __future__ import print_function

0 commit comments

Comments
 (0)