On Fri, 7 Mar 2003 12:19:40 +0100
"Dittmar, Daniel" <[EMAIL PROTECTED]> wrote:
Great,
Thank you for the quick help.
> > I have found a critical Bug,
> > when Inserting/Updating LONG Fields.
> >
> > The Bug only occurs if the LONG-data has a certain size.
>
> The network protocol for LONGs requires that a special end-of-longs marker is written
> and the current implementation did not reserve room for that marker.
> ==== //sapdb/V73/c_00/develop/sys/src/in/vin77.c#9 -
> d:\V73\c_00\develop\sys\src\in\vin77.c ====
> ==== (in putLongvals)
> @@ -4207,6 +4207,7 @@
> descriptorLen = 0;
> }
> i28getFreePartInfo (session, REINTERPRET_CAST (void**, &dataPtr), &bufPos,
> &freeLen);
> + freeLen -= descriptorLen; /* keep room for end-of-longs-marker */
> #if defined (PUTVAL_REQUIRES_TWO_BYTE_COUNT)
> startPtr = dataPtr;
> if (forPutval) {
>
Are you sure that it is not a problem if freeLen - descriptorLen gets a negative value?
>
> While searching for that bug, another flaw was detected: when an INSERT or UPDATE
> was reparsed internally, some counters weren't reinitialized, which results in a
> core dump.
> ==== //sapdb/V73/c_00/develop/sys/src/in/vin77.c#9 -
> d:\V73\c_00\develop\sys\src\in\vin77.c ====
> ==== (in fillParamInfos)
> @@ -4546,6 +4547,8 @@
> }
> }
> parseInfo->outputParamCount = 0;
> + parseInfo->inLongCount = 0;
> + parseInfo->outLongCount = 0;
> for (i = 0; i < parseInfo->paramCount; ++i) {
> tsp1_param_info * paramInfo = &parseInfo->paramInfo [i];
> if (paramInfo->sp1i_io_type != sp1io_input) {
>
Good,
Ok, what now,
- when do you release a bugfixed version of the pythondriver?
- Which cvs-versions (TAGS) of the sources (7.3) are stable and can be used for
me to apply this patch and recompile the driver for myself
- Shall I checkout the whole source tree with this version before rebuild?
- Does the pythondriver only consist of vin77.c and vin28.c, or does it
include/link to many many files in the whole source tree?
- Are there differences between pythondriver from 7.3 and 7.4?
Is it possible to connect to a 7.3 server with pythondriver from 7.4?
(Is the difference that only modulename and filetree changed or mode?)
Thank you very much for your quick help.
I want to have these kind of support from
other Software-Companys.
Andre'
> --
> Daniel Dittmar
> SAP DB, SAP Labs Berlin
> [EMAIL PROTECTED]
> http://www.sapdb.org/
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
--
_____________________________________________
inworks GmbH Andre Reitz
Magirusstrasse 44 Tel. 0731/93 80 7-21
89077 Ulm http://www.inworks.de
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general