I’m trying to interface kdb and C++ using the C API. It works fine, except when some field in my table has a timestamp datatype.
I generally do this,
K flip = ktd(result)
Then subsequently parse the table. But with timestamps, this becomes a null value possibly because of some error.
Can anyone help me with this? Is there a workaround? I’m using the latest k.h and c.o’s.
Thanks,
Aman
Hi Aman,
Could you post example code to reproduce the problem?
Which version/release of kdb+ are you connecting to? It may be that release of kdb+ is blocking sending of the timestamp type to this client, in which case you should detect “type” error on the client side. See example code here
http://code.kx.com/wsvn/code/contrib/wiki/csv.c
for detecting errors.
If that is the case, you can either upgrade to a later release of kdb+ (after 2012.05.30), or use a prior release of c.o (revisions can be found on code.kx.com).
thanks
Thanks Charles, this was very helpful