close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 20 years ago

Closed 20 years ago

Last modified 18 years ago

#240 closed defect (fixed)

TOL crashes with common code lines

Reported by: César Pérez Álvarez Owned by: danirus
Priority: highest Milestone:
Component: Various Version: head
Severity: blocker Keywords:
Cc:

Description

If we prove this lines:


Real SqlProParInsert(Set reg)

{

Text process = SqlFormatText(reg->Process, GesAct);
Text nParam = SqlFormatReal(reg->NParam, GesAct);
Text processParamType = SqlFormatText(reg->ProcessParamType, GesAct);
Text description = SqlFormatText(reg->TDescription, GesAct);

Set recordIns = SetOfText
(

process,
nParam,
processParamType,
description

);
Text values = UnionItem(recordIns, ",");
Text query = "insert into values ("+values+");";
Text WriteLn("Insertando el registro en BD: <"+query+">");
Real SqlDBExecQuery(query)

};

TOL crashes without an explication.

Change History (3)

comment:1 Changed 20 years ago by danirus

Status: newassigned

comment:2 Changed 20 years ago by danirus

Resolution: fixed
Status: assignedclosed

This bug has been fixed. The changes are already on the CVS.

The problem was that "SqlProParInsert" name collides in the Symbols Table with
one Struct object. From now on, different names in operator== (the Hash Table
method that compares two objects) returns false, avoiding any other objects
data comparation.

comment:3 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://www.tol-project.org
Note: See TracTickets for help on using tickets.