|
| 1 | +[Website Home Page](README.md) |
| 2 | + |
| 3 | +# Reference |
| 4 | + |
| 5 | +--- |
| 6 | +## Datatypes Supported |
| 7 | +Oracle Data Type Families<br> |
| 8 | +https://docs.oracle.com/cd/E11882_01/appdev.112/e25519/predefined.htm#LNPLS2047 |
| 9 | + |
| 10 | +* VARCHAR2 - Includes ROWID, LONG*, RAW, LONG RAW*, and NVARCHAR2 |
| 11 | +* DATE** - Includes TIMESTAMP and INTERVAL |
| 12 | +* NUMBER** - Includes PLS_INTEGER |
| 13 | +* BOOLEAN |
| 14 | +* XMLTYPE |
| 15 | +* CLOB - Includes NCLOB |
| 16 | +* BLOB |
| 17 | + |
| 18 | +*LONG and LONG RAW data length is limited to VARCHAR2 length in PL/SQL (32K).<br> |
| 19 | +**VARCHAR2 includes DATE and NUMBER using Implicit Data Conversions:<br> |
| 20 | +https://docs.oracle.com/cd/E11882_01/server.112/e41084/sql_elements002.htm#i163326 |
| 21 | + |
| 22 | +Many data types are converted to VARCHAR2 before comparison. This ensures most results are captured and reported exactly as they were tested. |
| 23 | + |
| 24 | +There is a balance to strike between simplicity and localization. Many data types must be converted to "strings" before display. Converting a data type at the time it is displayed can lead to confusing results. Since each assertion includes the capture of the values that were compared, the values that are captured are the actual values tested. |
| 25 | + |
| 26 | +An obvious drawback of this approach is running assertions when NLS settings must be set to something other than the setting that is needed for comparison. In this case, an explicit conversion can be made in the Test Runnner using the needed format. |
| 27 | + |
| 28 | +## Custom Error Codes |
| 29 | +* ORA-20001 - WTPLSQL Package: RUNNER_NAME is NULL |
| 30 | +* ORA-20002 - WTPLSQL Package: RUNNER_NAME (name) is not valid |
| 31 | +* ORA-20003 - WT_ASSERT Package: User Test Result is FAIL (g_raise_exception is TRUE) |
| 32 | +* ORA-20004 - WT_PROFILER Package: in_test_run_id is NULL |
| 33 | +* ORA-20005 - WT_PROFILER Package: dbms_profiler.INTERNAL_VERSION_CHECK returned (error) |
| 34 | +* ORA-20006 - WT_PROFILER Package: dbms_profiler.START_PROFILER returned (error) |
| 35 | +* ORA-20009 - WT_RESULT Package: "in_test_run_id" cannot be NULL |
| 36 | +* ORA-20010 - WT_TEST_RUN_STAT Package: Unknown Result status |
| 37 | +* ORA-20011 - WT_TEST_RUN_STAT Package: Unknown Profile status |
| 38 | +--- |
| 39 | +[Website Home Page](README.md) |
0 commit comments