Subject | Re: [firebird-support] Re: Event name size? |
---|---|
Author | Geoff Worboys |
Post date | 2016-01-03T10:51:53Z |
hvlad@... [firebird-support] wrote:
but I'm not familiar with all the pieces. I'm pleased it's
not still 15. :-)
--
Geoff Worboys
Telesis Computing Pty Ltd
> Quick look at sources show thatThanks for that. It ties fairly well with what I could see,
> 1. isc_event_block\gds__event_block and
> isc_event_counts\gds__event_counts make assumption that
> event name length is 1-byte wide, i.e. it encode\decode
> event into\from event blocks using 1-byte length for names.
> This give us up to 255 bytes for name string.
> 2. gds__event_block_a\isc_event_block_a assume that event
> names is no more than 31. I.e. if application uses these
> API, it will be limited by 31 bytes names. Comments shows
> that XXX_a API's is used by ADA preprocessor.
> 3. Event manager uses 2-byte for name length.
> 4. Engine make no guess about event name length, at least
> i see no such code.
> So, i'd say you may use events with names up to 255 bytes
> (assume you not using XXX_a API's). But, again, it was a
> quick look and i could miss something.
> Regards,
> Vlad
but I'm not familiar with all the pieces. I'm pleased it's
not still 15. :-)
--
Geoff Worboys
Telesis Computing Pty Ltd