#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
Status: | new → assigned |
---|
comment:2 Changed 20 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 Changed 18 years ago by
bug_file_loc: | → http://www.tol-project.org |
---|
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.