great to be returned accurately as a floating point number. This change had too great an impact on existing functionality and an output type handler can be used to return decimal numbers where that is desirable (https://github.com/oracle/python-cx_Oracle/issues/279).
This directory contains the test suite for cx_Oracle.
-
The schemas and SQL objects that are referenced in the test suite can be created by running the Python script SetupTest.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas that will be created, unless a number of environment variables are set as documented in the Python script TestEnv.py. Run the script using the following command:
python SetupTest.pyAlternatively, the SQL script can be run directly via SQL*Plus, which will always prompt for the names of the schemas that will be created. Run the script using the following command:
sqlplus sys/syspassword@hostname/servicename @sql/SetupTest.sql -
Run the test suite by issuing the following command in the top-level directory of your cx_Oracle installation:
python setup.py testAlternatively, you can run the test suite directly within this directory:
python test.py -
After running the test suite, the schemas can be dropped by running the Python script DropTest.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas that will be dropped, unless a number of environment variables are set as documented in the Python script TestEnv.py. Run the script using the following command:
python DropTest.pyAlternatively, the SQL script can be run directly via SQL*Plus, which will always prompt for the names of the schemas that will be dropped. Run the script using the following command:
sqlplus sys/syspassword@hostname/servicename @sql/DropTest.sql