SAP Knowledge Base Article - Preview

2875072 - double type value returns wrong value via unixODBC - SAP IQ

Symptom

When a double column is obtained via unixODBC, the decimal point does not display the correct value.
This problem is also reproduced with the SQLAnywere ODBC driver.
This problem will always occur after the second line.
The ORDER BY clause does not solve this problem.

SQL> select * from double_test
+------------+-------------------------+
| id | test_double |
+------------+-------------------------+
| 1 | 139.822778 |                              <------ Correct Value
| 2 | 139.82277799999997 |
| 3 | 139.82277799999997 |
| 4 | 139.82277799999997 |
| 5 | 139.82277799999997 |
+------------+-------------------------+
SQLRowCount returns -100
5 rows fetched


Read more...

Environment

  • SAP IQ 16.0
  • SAP IQ 16.1
  • SAP SQL Anywere 17.0
  • ODBC
  • unixODBC

Product

SAP IQ 16.0 ; SAP IQ 16.1 ; SAP SQL Anywhere 17.0

Keywords

ODBC, unixODBC, Linux, SQL Anywere, IQ, double , KBA , BC-SYB-IQ , Sybase IQ , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.