Subject | Re: in new API |
---|---|
Author | Norbert Saint Georges |
Post date | 2018-06-09T11:52:26Z |
Norbert Saint Georges nsg@... [firebird-support] a écrit :
/*********************************/
/* Transaction information items */
/*********************************/
#define isc_info_tra_id 4
#define isc_info_tra_oldest_interesting 5
#define isc_info_tra_oldest_snapshot 6
#define isc_info_tra_oldest_active 7
#define isc_info_tra_isolation 8
#define isc_info_tra_access 9
#define isc_info_tra_lock_timeout 10
#define fb_info_tra_dbpath 11
*/
getmem(items,8);
val := 4 ; move(items[0],byte(val),1);
val := 5 ; move(items[1],byte(val),1);
val := 6 ; move(items[2],byte(val),1);
val := 7 ; move(items[3],byte(val),1);
val := 8 ; move(items[4],byte(val),1);
val := 9 ; move(items[5],byte(val),1);
val := 10 ; move(items[6],byte(val),1);
val := 11 ; move(items[7],byte(val),1);
tra.getInfo(st,length(items),itemsptr,bufferlenght,bufferptr);
result in buffer =
3,5,0,13,21,0,0,20,3,5,0,240,21,0,0,20,3,5,0,173,21,0,0,20,3,5,0,186,21,0,0,20,3,5,0,13,21,0,0,20,3,5,0,240,21,0,0,20,3,5,0,173,21,0,0,20,3,5,0,186,21,0,0,20,3,5,0,171,21,0,0,20,1,......
either here (if I understand correctly):
1283
13
335544341
1283
240
335544341
1283
173
335544341
....
and 335544341 is equal to ( 13,240,173,..I have not found yet) =
-901 335544341 infunk Unknown information item
ok ;-), so he must miss something but what?
--
Norbert Saint Georges
http://tetrasys.fi
> transaction id (= current_transaction)/* jrd\inf_pub.h
/*********************************/
/* Transaction information items */
/*********************************/
#define isc_info_tra_id 4
#define isc_info_tra_oldest_interesting 5
#define isc_info_tra_oldest_snapshot 6
#define isc_info_tra_oldest_active 7
#define isc_info_tra_isolation 8
#define isc_info_tra_access 9
#define isc_info_tra_lock_timeout 10
#define fb_info_tra_dbpath 11
*/
getmem(items,8);
val := 4 ; move(items[0],byte(val),1);
val := 5 ; move(items[1],byte(val),1);
val := 6 ; move(items[2],byte(val),1);
val := 7 ; move(items[3],byte(val),1);
val := 8 ; move(items[4],byte(val),1);
val := 9 ; move(items[5],byte(val),1);
val := 10 ; move(items[6],byte(val),1);
val := 11 ; move(items[7],byte(val),1);
tra.getInfo(st,length(items),itemsptr,bufferlenght,bufferptr);
result in buffer =
3,5,0,13,21,0,0,20,3,5,0,240,21,0,0,20,3,5,0,173,21,0,0,20,3,5,0,186,21,0,0,20,3,5,0,13,21,0,0,20,3,5,0,240,21,0,0,20,3,5,0,173,21,0,0,20,3,5,0,186,21,0,0,20,3,5,0,171,21,0,0,20,1,......
either here (if I understand correctly):
1283
13
335544341
1283
240
335544341
1283
173
335544341
....
and 335544341 is equal to ( 13,240,173,..I have not found yet) =
-901 335544341 infunk Unknown information item
ok ;-), so he must miss something but what?
--
Norbert Saint Georges
http://tetrasys.fi