|
-
March 3rd, 2012, 11:30 AM
#1
Wrong return from GetFieldValue() with decimal field
Hi there,
I'm using MFC CRecordset to retrieve data from a Oracle Database 10g.
All is good except if a data type in database is NUMBER(x, y).
I looked into m_nSQLType of CODBCFieldInfo struct and it's correct, returning 3 (SQL_DECIMAL).
So, the function GetFieldValue(LPCTSTR lpszName, CDBVariant& varValue) returns a CDBVariant with wrong data type. He throws it as String instead of double.
I tried it with NUMBER (without precision) and it worked fine, but i need that precision.
Please, any help?
Kind Regards,
Warvimo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|