Re: SQLGetData/NUMERIC field in MS Access database
- From: "Dmitry B." <dmbasko@xxxxxxxxx>
- Date: Fri, 13 Jul 2007 12:50:03 -0700
*********
"Bob Hairgrove" <NoSpamPlease@xxxxxxxx> wrote in message
It's possible that SQL_DECIMAL behaves differently than SQL_NUMERIC
... did you try it?
I didn't, because I would expect that according to the standard if you ask
ODBC driver to convert the data you should either get them back or you must
receive an error code, indicating that the given conversion is not possible.
In this particular case, you get wrong data and no error.
Now I tried, SQLGetData(... SQL_DECIMAL ...) returned -1. On the one hand,
the column is defined as decimal (in the database), the odbc driver returns
the type of this column as SQL_NUMERIC. So, all aforementioned conversions
must work, but they don't.
best,
Dmitry
.
- Follow-Ups:
- Re: SQLGetData/NUMERIC field in MS Access database
- From: Dmitriy Ivanov
- Re: SQLGetData/NUMERIC field in MS Access database
- From: Bob Hairgrove
- Re: SQLGetData/NUMERIC field in MS Access database
- References:
- SQLGetData/NUMERIC field in MS Access database
- From: Dmitry Basko
- Re: SQLGetData/NUMERIC field in MS Access database
- From: Bob Hairgrove
- SQLGetData/NUMERIC field in MS Access database
- Prev by Date: Re: SQLGetData/NUMERIC field in MS Access database
- Next by Date: Re: SQLGetData/NUMERIC field in MS Access database
- Previous by thread: Re: SQLGetData/NUMERIC field in MS Access database
- Next by thread: Re: SQLGetData/NUMERIC field in MS Access database
- Index(es):