Document Type | Troubleshooting
Category | Administration
Applicable Product Version | 5F
Document Number | TADTS065
Issue
System.OverflowException: An overflow occurred due to an arithmetic operation.
Occurrence Location
- System.Data.Odbc.OdbcStatementHandle.RowCount(SQLLEN& rowCount)
- System.Data.Odbc.OdbcDataReader.GetRowCount()
- System.Data.Odbc.OdbcDataReader.FirstResult()
- System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
- System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
- System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
- kolonBatch.Form1.getUserInformation()
Applicable Specifications
tbodbc_driver_installer_5_64.exe -c
ODBC Version
This driver is a 64-bit file.
Version: 5, 0, 0, 77652 or higher
Cause
Tibero ODBC is developed based on CLI and internally uses the long type for SQL integer. At this time, an overflow can occur due to the 4-byte specification difference of long in Windows.
Solutions
When connecting via ODBC, add the "TYPE=ODBC" property to the Connection String.
Connect String -> "Driver={Tibero 5 ODBC
Driver};SERVER=192.168.XX.XXX;PORT=8629;DataBase=tibero;UID=tibero;PWD=tmax;TYPE=ODBC;";