Subject Re: [ib-support] Firebird API, specifying table reservation.
Author Ann W. Harrison
At 02:00 PM 1/14/2003 +0100, Henrik Sitter wrote:

>that is if I drop specifying a table reservation for the table
>LEVERANDOR, a valid transaction handle is returned.
>
>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?

yes you can. I think that the problem is an error in your
tpb. After the tpb_lock_write, you need to include the
length of the table name.

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,
unsigned char (sizeof ("LEVERANDOR")),
"LEVERANDOR"}


Regards,

Ann
www.ibphoenix.com
We have answers.