Skip to content

Commit

Permalink
Handle timestamp with timezone data in the result set.
Browse files Browse the repository at this point in the history
Done by using additional OCI_TYPECODE constants from oro.h.  See the
occi programmer's guide ch. 5 on datatypes:
http://docs.oracle.com/cd/B19306_01/appdev.102/b14294/types.htm#sthref434
  • Loading branch information
johannish authored and raztus committed Jul 25, 2013
1 parent 43655a1 commit a19b9e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ void Connection::CreateColumnsFromResultSet(oracle::occi::ResultSet* rs, std::ve
case oracle::occi::OCCI_TYPECODE_DATE:
col->type = VALUE_TYPE_DATE;
break;
//Use OCI_TYPECODE from oro.h because occiCommon.h does not re-export these in the TypeCode enum
case OCI_TYPECODE_TIMESTAMP:
case OCI_TYPECODE_TIMESTAMP_TZ: //Timezone
case OCI_TYPECODE_TIMESTAMP_LTZ: //Local Timezone
col->type = VALUE_TYPE_TIMESTAMP;
break;
case oracle::occi::OCCI_TYPECODE_BLOB:
Expand Down

0 comments on commit a19b9e0

Please sign in to comment.