Skip to content
Browse files

Handle timestamp with timezone data in the result set.

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...
1 parent 43655a1 commit a19b9e029762bfff62c2d4668071904ed2477a82 @raztus raztus committed with raztus Jul 25, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/connection.cpp
View
3 src/connection.cpp
@@ -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:

0 comments on commit a19b9e0

Please sign in to comment.
Something went wrong with that request. Please try again.