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 17 years ago

Closed 17 years ago

#590 closed defect (fixed)

Function BDBOpen in Tol 1.1.6

Reported by: Javier Portugal Owned by: Víctor de Buen Remiro
Priority: high Milestone:
Component: Various Version: 1.1.6
Severity: critical Keywords:
Cc:

Description

This code raises an error in TOL 1.1.6 while in TOL 1.1.5 works perfectly

Struct TextoLineaSt
{

Text Line

};

Text File = "C:/sample.txt";
Set fileHdl = BDBOpen(File, 0, "", "", "TextoLineaSt");
Set cabecera = Tokenizer((BDBReg(fileHdl, 1))->Line, ";");
Real BDBClose(fileHdl);

File sample.txt should contain at least one line with any text (separated by ;), for example:

COD_BLOQUEIO;Contrato;DDD_Terminal;Filial;Segmento;PLANO_TARIFARIO;REF
0000;1130067227;;GO;B99;PROMOCAO LANCAMENTO PULA-PULA;200801
0000;1130067227;;GO;B99;PROMOCAO LANCAMENTO PULA-PULA;200802

Follows the error in tol 1.1.6:
ERROR: [5] _BDB_1_ no es una base de datos BDB

ERROR: [6] no es una base de datos BDB

ERROR: [7] Intento de acceso al campo Line para un conjunto sin estrutura

Warning: [1] La función Field (ó -> ) ha fallado en :
set->Line

ERROR: [8] Argumentos erróneos para Set Tokenizer (Text cadena, Text separador)

ERROR: [9] cabecera no se pudo crear.

ERROR: [10] _BDB_1_ no es una base de datos BDB

ERROR: [11] no es una base de datos BDB

Change History (1)

comment:1 Changed 17 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

Problem has been fixed in CVS for HEAD (1.1.7) and 1.1.6 versions

Note: See TracTickets for help on using tickets.