mariuz / flamerobin

FlameRobin is a database administration tool for Firebird RDBMS. Our goal is to build a tool that is: lightweight (small footprint, fast execution) cross-platform (Linux, Windows, Mac OS X, FreeBSD) dependent only on other Open Source software
http://flamerobin.org
MIT License
214 stars 66 forks source link

Implement time zone support for firebird 4. #223

Closed andy-123 closed 3 years ago

andy-123 commented 3 years ago

Add time zone support for firebird 4

Add a new option to "Data Grid"-preferences to select how time zones are displayed: none, id or name.

To display the names of the time zones the table RDB$TIME_ZONES is loaded. This is done when opening a database (ODS version >= 13.0).

arvanus commented 3 years ago

Nice! Do you plan to add support for int128 too? Thanks

andy-123 commented 3 years ago

Do you plan to add support for int128 too?

Yes. After this is merged.

arvanus commented 3 years ago

Done :)

arvanus commented 3 years ago

Found 2 problems with timestamp and time:

select cast (current_timestamp as TIMESTAMP without time zone) as ok, current_timestamp as also_ok, cast (current_timestamp as TIMESTAMP without time zone) as buggy_zero_day from rdb$database image

Just in the thirty column, the date is 31.12.1899 and the time is correct

select cast (current_time as TIME without time zone) as no_ms_value, current_time as no_ms_value, cast (current_time as TIME without time zone) as has_ms_but_dif_sec from rdb$database image

in this SQL, the MS part is always zeroed, but in the thirty column there is a MS value, and the sec is different

andy-123 commented 3 years ago

Thank you for reporting. I will have a look at it.