Subject Re: Locking a Table
Author kapsee
I used the TPB given in the doc.

static char isc_tpb[] = {isc_tpb_version3,
isc_tpb_write,
isc_tpb_concurrency,
isc_tpb_nowait,
isc_tpb_protected, isc_tpb_lock_read, "COUNTRY",
isc_tpb_protected, isc_tpb_lock_write, "EMPLOYEE"};

This does not compile since it cannot convert char* to char.

Any idea what the correct TPB format is ?

Thanks!

--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@s...> wrote:
>
> > How do I lock and unlock a table so that there can be no concurrent
> > updates/inserts to that table ? I am using the C API.
>
> Look at RESERVING clause of SET TRANSACTION command.
> (or do the same using Transaction Parameter Buffer when using
transaction API)
>
> Ivan
>