Hi,

I'm trying to read response for `fb_info_creation_timestamp_tz`. Timezone 
piece. But I'm getting some weird data. The whole buffer is `139, 12, 0, 8, 
232, 0, 0, 10, 71, 173, 16, 216, 103, 147, 0, 1`, thus if I'm counting 
correctly the `216, 103, 147, 0` should be timezone data, which is weird.

The `dbb->dbb_creation_date.time_zone` from 
[inf.cpp](https://github.com/FirebirdSQL/firebird/blob/master/src/jrd/inf.cpp#L557)
 is `ISC_USHORT`, hence `USHORT`, hence `unsigned short`. The `INF_convert` 
would use `put_vax_long` and eventually `memcpy(p, &value, sizeof(SLONG));`. 

But how can `ISC_USHORT` end up in `216, 103, 147, 0`?

-- 
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to