Subject Re: [ib-support] Firebird API, specifying table reservation.
Author Dimitry Sibiryakov
On 14 Jan 2003 at 14:00, Henrik Sitter wrote:

>I'm working a bit with the Firebird API (version 1.0.0) and have the
>following code for the Transaction Parameter Buffer (tpb):
>
>static char isc_tpb[] = {isc_tpb_version3,
>isc_tpb_write,
>isc_tpb_read_committed,
> isc_tpb_no_rec_version,
> isc_tpb_wait,
> isc_tpb_protected, isc_tpb_lock_write,
>"LEVERANDOR"
> };

Borland documentation contain errors.

>So the question is, can/can't I use table reservation in Firebird
>v.1.0.0, and if I can, what is the flaw in my code?

You've missed table name length. TPB should look like that:

...
isc_tpb_lock_write,
char(10),
'L','E','V','E','R','A','N','D','O','R'
...

Pay attention to absence of the final '\0'.

SY, Dimitry Sibiryakov.