OTL 4.0, OTL defined exceptions

OTL defined exceptions

The following OTL exceptions can be raised by the OTL stream functions:

Code=32000: Incompatible data types in stream operation

Code=32001: Row must be full for flushing output stream Code=32004: Not all input variables have been initialized Code=32004: No input variables have been defined in SQL statement Code=32005: Input string value is too large to fit into the buffer Code=32006: Input otl_long_string value is too large to fit into the buffer Code=32007: PL/SQL table size is too large (>32767) Code=32008: Writing CLOB/BLOB in stream mode: actual size is greater than specified, trying to store X1 bytes / Unicode characters at offset X2. New length: X3 would be bigger than length of lob: X4.  Code=32009: Closing CLOB/BLOB in stream mode: actual size is not equal to specified size Code=32010: CLOB/BLOB stream is not open for writing


Code=32012: CLOB/BLOB stream is not open for reading


Code=32012: First session must be started with session_begin()


Code=32013: Invalid bind variable declaration


Code=32014: No stored procedure was found


Code=32015: Unsupported data type

Code=32016: Unsupported procedure type Code=32017: Stream buffer size can't be > 1 in this case Code=32018: ODBC / DB2 CLI function name is not recognized. It should be one of the following: SQLTables, SQLColumns, SQLProcedures, SQLColumnPrivileges, SQLTablePrivileges, SQLPrimaryKeys, SQLProcedureColumns, SQLForeignKeys, SQLStatistics.
Code=32019: otl_stream::operator>>() should have been called before otl_stream::operator int() Code=32020: otl_stream_read_iterator: otl_stream is not open Code=32021: otl_stream_read_iterator: PL/SQL table and 'refcur' parameters are not supported Code=32022: otl_stream_read_iterator: otl_stream cannot be described Code=32023: otl_stream_read_iterator: position is out of range Code=32024: otl_stream_read_iterator: incompatible types in get()
Code=32025: otl_stream::operator int() is not supported in the LOB stream mode
Code=32026: otl_stream_read_iterator: get(otl_lob_stream*&) function can only be used if otl_stream::set_lob_stream_mode(true) had been called before the iterator was attached to the stream Code=32027: otl_stream_read_iterator: : variable name is not recognized  Code=32028: Unsupported column data type Code=32029: RAW value cannot be read with otl_lob_stream, use otl_long_string instead
Code=32030: otl_stream is already open Code=32031: otl_connect is already connected Code=32032: SELECT otl_stream buffer size for TimesTen should be in [0..128] range Code=32033: otl_connect object needs to be connected to DB before using otl_subscriber Code=32034: otl_stream buffer size should be 1 when refcur or plsql table is used Code=32035: END-OF-ROW check failed Code=32036: otl_connect is not connected to the database
Code=32037: SQL Statement has a white space in bind variable declaration


Code=32038: otl_long_unicode_string should be used with strings when OTL_UNICODE is enabled, and otl_long_string should be use with strings when OTL_UNICODE is not enabled


Code=32039: otl_long_string should be used with nonstrings when OTL_UNICODE is enabled


Code=32040: This type of otl_stream can only have input variables


Code=32041: Invalid stream buffer size (<=0)


Code=32042: otl_lob_stream can't be used as an input parameter with a SELECT statement
 or a stored procedure that returns an implicit result set


Code=32043: otl_stream::operator>>(XXX) has been called when EOF was already reached


Code=32043: otl_stream::operator>>(XXX) has been called when EOF was already reached


Code=32044: Bind variable declaration is missing a terminator: > or */


Code=32045: Empty TNS name in connect string


Code=32046: target std::array<char,...> container is too small


Code=32047: target std::array<char16_t,...> container is too small

Code=32048: rewind() cannot be called when implicit_select == otl_direct_exec_select


Prev ContentsGo Home


Copyright 1996-2017, Sergei Kuchin, email: skuchin@gmail.com, skuchin@gmail.com .

Permission to use, copy, modify and redistribute this document for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.