T.R | Title | User | Personal Name | Date | Lines |
---|
1312.1 | known prob | M5::JBALOGH | | Wed Mar 19 1997 08:32 | 10 |
| Yes, this is a known problem with MS Query or any ODBC app that fetches
REAL or DOUBLE data types into chars.
The precision for an Rdb DOUBLE or REAL is more that the spec allows.
The ODBC driver specifies 13 chars for REAL but Rdb is sending it 14
so the driver has to cut 1 off to meet the spec.
Not much can be done except to get Microsoft to change the ODBC spec.
John
|
1312.2 | | M5::JBALOGH | | Wed Mar 19 1997 08:33 | 5 |
| One thing you may be able to do is to CAST the REAL to another data
type such as integer or char. You could do this is in a query or in a
view.
John
|
1312.3 | | AVMSV1::EKREISLE | Erich Kreisler | Wed Mar 19 1997 08:56 | 11 |
| > The ODBC driver specifies 13 chars for REAL but Rdb is sending it 14
> so the driver has to cut 1 off to meet the spec.
>Not much can be done except to get Microsoft to change the ODBC spec.
So we do not conform to the ODBC spec in that area. My opinion is that this is
our problem and not the problem of MS if we do not conform to ODBC Spec.
On the other hand is this documented anywhere (Ichecked but did not find it).
Any more information welcome,
erich
|
1312.4 | | M5::JBALOGH | | Wed Mar 19 1997 10:24 | 11 |
| The point was that we DO conform to the spec. The ODBC spec says we
have to return 13 characters. The driver returns 13 characters.
The problem is that Rdb carries a greater precision than the ODBC spec
allows so something has to go. I really don't think Rdb engineering is
going to reduce precision in Rdb to match the Microsoft spec.
I guess the real question is going to be... What does SQL92 say about
length of a real?
John
|
1312.5 | documented... | M5::JBALOGH | | Wed Mar 19 1997 15:19 | 6 |
| BTW:
This behavior is documented in the readme.txt file that ships with ODBC
driver.
John
|
1312.6 | | AVMSV1::EKREISLE | Erich Kreisler | Fri Mar 21 1997 08:53 | 7 |
| Re .-1
I hope the customer accepts what we have documented.
I also recommended to use the workarounds described in that document.
Ciao,
erich
|
1312.7 | Digit cut off when fetching negative real value using ODBC | ataxp1.at.oracle.com::RROEHRIC | Oracle Austria | Mon Mar 24 1997 06:07 | 6 |
| The customer doesn't accept the workaround, casting the real.
In his opinion the odbc-driver should convert the real or truncate one
precision-digits and not truncate the exponent.
Regards
Reinhold
|
1312.8 | Bug 471042 | 148.87.13.1::EKREISLE | Erich Kreisler | Fri Mar 28 1997 07:54 | 0
|