Skip to Content
0
Former Member
Sep 19, 2008 at 05:56 AM

How much space to allocate for TIMESTAMP field in MaxDB/SQLDBC

40 Views

Hi Everybody,

In a C application using SQLDBC to access MaxDB if i have to allocate space for holding the value returned by TIMESTAMP field from a table. How much space should i allocate to this variable.

For example:

In Oracle:

the space allocated is

m_size = sizeof(OCIDate);

In DB2:

sizeof(SQL_TIMESTAMP_STRUCT)

In MySQL:

sizeof(MYSQL_TIME)

Regards

Raja