Questions about "long" data type in a field
Date: Mon, 17 Dec 2001 17:44:47 GMT
Message-ID: <jaqT7.398$Lx1.2691_at_shaw-ty1>
Hi,
I'm developing an application that needs to map some C "long" variables to fields in an Oracle database.
When we choose the type "LONG" as a variable in Oracle, the default with length 10 maps to a CString in our MFC application. However, when the length is 0, and the Scale is 0, it maps to a C "double".
How do we get it to map to a "long" (i.e. what do we do to make sure the Oracle system creates a true "long" data type?).
Details of App:
-MFC/Win32
-Oracle ODBC Driver
Any suggestions, comments, etc. would be great. Currently we are trying to make our SQL Server application compatible with an Oracle database; the problem lies with the data types (for the moment).
Thanks.
-Chris
Received on Mon Dec 17 2001 - 18:44:47 CET