We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue migrated from trac ticket # 104
component: kunlun-storage | priority: major
sql code: DROP TABLE if exists TIMETZ_TBL; CREATE TABLE TIMETZ_TBL (f1 time(2) with time zone); INSERT INTO TIMETZ_TBL VALUES ('00:01 PDT'); INSERT INTO TIMETZ_TBL VALUES ('01:00 PDT'); INSERT INTO TIMETZ_TBL VALUES ('02:03 PDT'); INSERT INTO TIMETZ_TBL VALUES ('07:07 PST'); INSERT INTO TIMETZ_TBL VALUES ('08:08 EDT'); INSERT INTO TIMETZ_TBL VALUES ('11:59 PDT'); INSERT INTO TIMETZ_TBL VALUES ('12:00 PDT'); INSERT INTO TIMETZ_TBL VALUES ('12:01 PDT'); INSERT INTO TIMETZ_TBL VALUES ('23:59 PDT'); INSERT INTO TIMETZ_TBL VALUES ('11:59:59.99 PM PDT'); INSERT INTO TIMETZ_TBL VALUES ('2003-03-07 15:36:39 America/New_York'); INSERT INTO TIMETZ_TBL VALUES ('2003-07-07 15:36:39 America/New_York'); select * from TIMETZ_TBL; tdb1=# select * from TIMETZ_TBL; f1 00:01:00+00 01:00:00+00 02:03:00+00 07:07:00+00 08:08:00+00 11:59:00+00 12:00:00+00 12:01:00+00 23:59:00+00 23:59:59.99+00 15:36:39+00 15:36:39+00 All the timezone info is removed when putting into the table.
sql code:
DROP TABLE if exists TIMETZ_TBL; CREATE TABLE TIMETZ_TBL (f1 time(2) with time zone); INSERT INTO TIMETZ_TBL VALUES ('00:01 PDT'); INSERT INTO TIMETZ_TBL VALUES ('01:00 PDT'); INSERT INTO TIMETZ_TBL VALUES ('02:03 PDT'); INSERT INTO TIMETZ_TBL VALUES ('07:07 PST'); INSERT INTO TIMETZ_TBL VALUES ('08:08 EDT'); INSERT INTO TIMETZ_TBL VALUES ('11:59 PDT'); INSERT INTO TIMETZ_TBL VALUES ('12:00 PDT'); INSERT INTO TIMETZ_TBL VALUES ('12:01 PDT'); INSERT INTO TIMETZ_TBL VALUES ('23:59 PDT'); INSERT INTO TIMETZ_TBL VALUES ('11:59:59.99 PM PDT'); INSERT INTO TIMETZ_TBL VALUES ('2003-03-07 15:36:39 America/New_York'); INSERT INTO TIMETZ_TBL VALUES ('2003-07-07 15:36:39 America/New_York');
select * from TIMETZ_TBL; tdb1=# select * from TIMETZ_TBL; f1 00:01:00+00 01:00:00+00 02:03:00+00 07:07:00+00 08:08:00+00 11:59:00+00 12:00:00+00 12:01:00+00 23:59:00+00 23:59:59.99+00 15:36:39+00 15:36:39+00
All the timezone info is removed when putting into the table.
The text was updated successfully, but these errors were encountered:
timetz is discouraged to be used according to pg doc because it's logically unreasonable, so let's fix this some time in future. timestamptz has good timezone support.
timetz is discouraged to be used according to pg doc because it's logically unreasonable, so let's fix this some time in future.
timestamptz has good timezone support.
Sorry, something went wrong.
david-zhao
No branches or pull requests
Issue migrated from trac ticket # 104
component: kunlun-storage | priority: major
2021-06-16 10:54:35: @jd-zhang created the issue
The text was updated successfully, but these errors were encountered: