datetime datatype returns string

15 views
Skip to first unread message

Ralf Kelzenberg

unread,
Apr 24, 2013, 2:39:08 AM4/24/13
to ibm...@googlegroups.com
I compiled ibm_db 2.0.2 from source using the dsdriver package 10.1fix2
I am connecting to an informix 12 database.

When fetching data from a colum with type DATETIME I get a string containing the datetime in the ISO datetime format instead of a python datetime datatype.

What I am I doing wrong?

Rahul

unread,
Apr 24, 2013, 5:12:19 AM4/24/13
to ibm_db
Hi Ralf,
You are getting the expected result since current implementation of
ibm_db returns string representation of DATETIME/DATE/TIME only. We
are planning to change this behavior and from next release, ibm_db
will return python's datetime/date/time object.

Thanks,
Rahul
Reply all
Reply to author
Forward
0 new messages