@@ -814,8 +814,11 @@ PyObject *cxoTransform_toPython(cxoTransformNum transformNum,
814
814
timestamp -> month , timestamp -> day , timestamp -> hour ,
815
815
timestamp -> minute , timestamp -> second ,
816
816
timestamp -> fsecond / 1000 );
817
+ case CXO_TRANSFORM_FIXED_CHAR :
817
818
case CXO_TRANSFORM_FIXED_NCHAR :
819
+ case CXO_TRANSFORM_LONG_STRING :
818
820
case CXO_TRANSFORM_NSTRING :
821
+ case CXO_TRANSFORM_STRING :
819
822
bytes = & dbValue -> asBytes ;
820
823
return PyUnicode_Decode (bytes -> ptr , bytes -> length , bytes -> encoding ,
821
824
encodingErrors );
@@ -854,12 +857,6 @@ PyObject *cxoTransform_toPython(cxoTransformNum transformNum,
854
857
return cxoError_raiseAndReturnNull ();
855
858
return PyUnicode_Decode (rowid , rowidLength ,
856
859
connection -> encodingInfo .encoding , NULL );
857
- case CXO_TRANSFORM_FIXED_CHAR :
858
- case CXO_TRANSFORM_STRING :
859
- case CXO_TRANSFORM_LONG_STRING :
860
- bytes = & dbValue -> asBytes ;
861
- return PyUnicode_Decode (bytes -> ptr , bytes -> length ,
862
- bytes -> encoding , encodingErrors );
863
860
case CXO_TRANSFORM_TIMEDELTA :
864
861
intervalDS = & dbValue -> asIntervalDS ;
865
862
seconds = intervalDS -> hours * 60 * 60 + intervalDS -> minutes * 60 +
0 commit comments