From: <ibr...@us...> - 2011-08-08 11:57:39
|
Revision: 4027 http://tora.svn.sourceforge.net/tora/?rev=4027&view=rev Author: ibre5041 Date: 2011-08-08 11:57:32 +0000 (Mon, 08 Aug 2011) Log Message: ----------- memory corruption fix. The precision is sb2 when describing queries column list. Modified Paths: -------------- branches/tora-trotl/src/trotl/src/trotl.h branches/tora-trotl/src/trotl/src/trotl_describe.cpp branches/tora-trotl/src/trotl/src/trotl_describe.h Modified: branches/tora-trotl/src/trotl/src/trotl.h =================================================================== --- branches/tora-trotl/src/trotl/src/trotl.h 2011-08-08 09:56:39 UTC (rev 4026) +++ branches/tora-trotl/src/trotl/src/trotl.h 2011-08-08 11:57:32 UTC (rev 4027) @@ -45,6 +45,7 @@ #include "trotl_date.h" #include "trotl_string.h" #include "trotl_rid.h" +#include "trotl_describe.h" #ifdef ORACLE_HAS_XML #include "trotl_xml.h" Modified: branches/tora-trotl/src/trotl/src/trotl_describe.cpp =================================================================== --- branches/tora-trotl/src/trotl/src/trotl_describe.cpp 2011-08-08 09:56:39 UTC (rev 4026) +++ branches/tora-trotl/src/trotl/src/trotl_describe.cpp 2011-08-08 11:57:32 UTC (rev 4027) @@ -442,7 +442,7 @@ // For the case when precision is 0, NUMBER(precision, scale) can be represented simply as NUMBER. // ub1 for explicit describe // sb2 for implicit describe - _precision = param.get_attribute<ub1>(OCI_ATTR_PRECISION); + _precision = param.get_attribute<sb2>(OCI_ATTR_PRECISION); // OCI_ATTR_SCALE The scale of numeric columns. If the precision is nonzero and scale is -127, // then it is a FLOAT, else it is a NUMBER(precision, scale). Modified: branches/tora-trotl/src/trotl/src/trotl_describe.h =================================================================== --- branches/tora-trotl/src/trotl/src/trotl_describe.h 2011-08-08 09:56:39 UTC (rev 4026) +++ branches/tora-trotl/src/trotl/src/trotl_describe.h 2011-08-08 11:57:32 UTC (rev 4027) @@ -366,7 +366,7 @@ OCITypeCode _typecode; OCITypeCode _collection_typecode; OCITypeCode _collection_data_type; - ub1 _precision; + sb2 _precision; // ub1 for explicit describe // sb2 for implicit describe sb1 _scale; ub2 _charset_id; ub1 _charset_form; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |