Subject Re: Error using a transaction parameter block with the OO API.
Author
---In firebird-support@yahoogroups.com, <markjford@...> wrote :

> I'm using the Firebird 3.0 release version.  Delphi 10.1 Berlin with the firebird.pas release file and fbclient3.  I can connect to the database
> and can run queries, but I can't seem to get a custom transaction parameter block to work.   Here's my code:
>
>     // Transaction := attachment.startTransaction(status, 0, nil);
>     tpb := Util.getXpbBuilder(status, IXpbBuilder.TPB, nil, 0);
>     tpb.insertTag(status, isc_tpb_write);
>     tpb.insertTag(status, isc_tpb_read_committed);
>     tpb.insertTag(status, isc_tpb_nowait);
>     tpb.insertTag(status, isc_tpb_rec_version);
    >
>     // This always seems to error with "invalid format for transaction parameter block"

  TPB must start with isc_tpb_version1 or isc_tpb_version3

>     Transaction := attachment.startTransaction(status, tpb.getBufferLength(status), tpb.getBuffer(status));
>
> Has anyone gotten that to work?  Any suggestions are appreciated.  Also, does anyone know what the default transaction parameters
> are (e.g. if no custom tpb is used)? 

  IIRC, by default transaction started as {isc_tpb_concurrency, isc_tpb_write, isc_tpb_wait}

Regards,
Vlad