| 32 | |
| 33 | |
| 34 | TimeZoneSnapshot::TimeZoneSnapshot(thread_db* tdbb, MemoryPool& pool) |
| 35 | : SnapshotData(pool) |
| 36 | { |
| 37 | RecordBuffer* tzBuffer = allocBuffer(tdbb, pool, rel_time_zones); |
| 38 | Record* tzRecord = tzBuffer->getTempRecord(); |
| 39 | tzRecord->nullify(); |
| 40 | |
| 41 | TimeZoneUtil::iterateRegions( |
| 42 | [=] |
| 43 | (USHORT id, const char* name) |
| 44 | { |
| 45 | SINT64 idValue = id; |
| 46 | |
| 47 | putField(tdbb, tzRecord, DumpField(f_tz_id, VALUE_INTEGER, sizeof(idValue), &idValue)); |
| 48 | putField(tdbb, tzRecord, DumpField(f_tz_name, VALUE_STRING, static_cast<USHORT>(strlen(name)), name)); |
| 49 | tzBuffer->store(tzRecord); |
| 50 | } |
| 51 | ); |
| 52 | } |
| 53 | |
| 54 | |
| 55 | //-------------------------------------- |
nothing calls this directly
no test coverage detected