Subject RE: [ib-support] Firebird API, specifying table reservation.
Author Henrik Sitter
Hi, Ann.

I got it to work, thanks to help from Dan. He had a slightly different
approach from you, but I'll try your code as well:)

Regards,

Henrik

-----Original Message-----
From: Ann W. Harrison [mailto:aharrison@...]
Sent: Tuesday, January 14, 2003 8:42 PM
To: ib-support@yahoogroups.com; ib-support@yahoogroups.com
Subject: Re: [ib-support] Firebird API, specifying table reservation.

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.




To unsubscribe from this group, send an email to:
ib-support-unsubscribe@egroups.com



Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/