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

static char isc_tpb[] = {isc_tpb_version3,
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 ?


--- In, "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