Adriano dos Santos Fernandes
94f377b8fb
Add SET TIME ZONE BIND statement.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
873cd8090f
Make isc_dpb_session_time_zone also define the original time zone, and make RESET reset the session time zone to the original one.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
abf39e549a
Make system routines use IDs as generated for user routines.
...
User routines already are auto-generated and random while restoring backup.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
db664e6fbf
Add prefix for decfloat rules and nodes.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
5c0218cc8e
Fix AT operator precedence.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
f24562f15b
Document CURRENT_TIME and CURRENT_TIMESTAMP changes.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
fda3d6cb55
Adding new files to MSVC14 projects.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
61ef9f497f
Add security classes to system packages.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
5ad0cece75
Added UNIX_DATE constant and moved ONE_DAY to the implementation file.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
3c4c8e781d
Support for system packages and RDB$TIME_ZONE_UTIL system package implementation.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
4ea34933f0
Added isc_dpb_session_time_zone.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
fc96ea7b59
Misc.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
447ff4db4d
Misc.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e149a51e49
Added class ThrowStatusExceptionWrapper, better than ThrowStatusWrapper for Firebird's code.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
3492f5eb2f
Avoid buffer overflow possibility.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
a1e711cf49
Fix date/time support in messages, when Firebird namespace is not in scope.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
6f93e09a3f
Support for time zones in message macros.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
bdd496a015
GPRE does not support packages.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
942d7f49f5
Added RDB$TIME_ZONES virtual table.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
ebe39c4b6a
Documentation for time zone support.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
d3df86068a
Allow to use, for example, time zones Etc/GMT+1 and Etc/GMT-1.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
46e954f863
Change UTC->GMT as appropriate and reorder the identifiers so GMT becomes number 65535.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
0a5ab86198
Update keywords doc.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
a65f8ffb5e
Allow literal and conversion from timestamp with date and time zone but without time.
...
For example: timestamp '2018-01-02 America/Sao_Paulo'
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
53be87c228
Reject invalid conversion: cast('01-today' as date) - another CORE-5750 case.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
fb7a6b48a8
Implement DDL conversions.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
08a68af79f
There seems to be no reason for this code duplication.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
150f62d599
Embed the utc_timestamp as ISC_TIMESTAMP struct inside ISC_TIMESTAMP_TZ.
...
Some struct field names adjustments accordingly.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
ba76d14785
Bug fixes.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
46613ba1b3
Increase maximum time zone length.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
9a56fe9a9b
Add list of all time zones.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e0450a79d9
Add encode/decode functions to IUtil and remove partially added legacy API functions.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
c15a38ca78
Fix multi-field sort.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
b04907d431
Correction.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
b11daa52cc
Fixed Windows build.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
3b5aa40b43
Fixed DATEDIFF.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
141f62611b
Changing descriptors to store in memory date/time tz in UTC and usage of ICU for time zone regions.
...
This version is fixedly configured only with America/Sao_Paulo and America/Los_Angeles.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
8792dff315
Internal support for time zone regions in addition to offsets.
...
Simulate regions with fixed BRT and BRST regions.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
4812ce8ee8
Fixed CORE-5750 - Date-time parsing is very weak.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
5becd96357
Fixed SQLDA_DISPLAY's type name.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
2b6ca80b87
Support for AT { TIME ZONE <zone> | LOCAL } clause.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
d268f7344f
Change time zone displacement field by a opaque zone field.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
60f1ed07a0
Fix the last commit.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
d68f886c77
Added optional WITHOUT TIME ZONE to TIME/TIMESTAMP datatypes.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
89d4b20d07
Fix ISQL's SET TIME command.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e84f443e8d
Fixed CORE-5717 - Reject non-constant date/time/timestamp literals.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
0b24bb8353
Fix conversion from strings TODAY, NOW, TOMORROW and YESTERDAY to TIME/TIMESTAMP WITH TIME ZONE.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
ac57e4c36f
Add a space before the time zone when converting to string.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
e3b0247336
Improve sort space and CPU processing for INTL_DATA, decfloat and date/time with time zone.
2018-11-12 13:18:00 -02:00
Adriano dos Santos Fernandes
7100879498
Initial implementation of time zone support - CORE-694.
...
TODO:
- Support regions.
- Reevaluate decision of store date/time components in memory in its own time zone instead of normalized to UTC.
- Fix ISQL's SET TIME command.
- Allow usage of "WITHOUT TIME ZONE" with TIME/TIMESTAMP data types.
- Think about compatibility of CURRENT_TIME/CURRENT_TIMEZONE.
- Support AT { LOCAL | TIME ZONE <zone> } expression.
- Support as needed and fix assertions when altering field types.
- Change conversion to string to put a space before the time zone.
- Big endian version of SKD_time_tz and SKD_timestamp_tz.
2018-11-12 13:18:00 -02:00