Courrupted table using blob field

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rcmz
Posts: 15
Joined: Wed 12 Mar 2008 05:58

Courrupted table using blob field

Post by rcmz » Fri 20 Aug 2010 03:12

This is the code I use to update the table or insert

Code: Select all

          SQL.Text := 'INSERT INTO Cartas (IDCARTA, '+
                              'Tipo, CveCarta, Layout, cEmpresa) '+
                      'Values (NEXT VALUE FOR GEN_CARTAS_ID,'+
                                ':Tipo, :CveCarta, :Layout, :cEmpresa) ';

        ParamByName('TIPO').AsString     := Copy(Etipo.Text,1,1);
        ParamByName('CVECARTA').AsString := Ecarta.Text;
        ParamByName('LAYOUT').LoadFromStream(sSTream, ftBlob);
        ParamByName('cEmpresa').AsString := GuEmpresa;
        Prepare;
        Execute;
        Unprepare;
But my table keep currupting what can I do.

Im using D2007 and IBDac June release.

TIA
rcm

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 20 Aug 2010 07:57

Please try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com including script to create database objects.

Post Reply