• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

babelfish-for-postgresql / babelfish_extensions / 10935044627
74%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: 5577-5x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Sep 2024 06:15AM UTC
Jobs 1
Files 114
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Sep 2024 05:32AM UTC coverage: 73.669% (+0.02%) from 73.653%
10935044627

push

github

web-flow
Fix date functions to take into account the timezone setting (#2918)

Issues - 

When the timezone parameter group setting is set to something other than the default UTC, Babelfish date
related functions like SYSDATETIME(), SYSDATETIMEOFFSET(), GETDATE() and CURRENT_TIMESTAMP don't take it
into account, while they should. The same issue occurs with a session-level timezone parameter.
SYSDATETIMEOFFSET() function returns datetimeoffset which does not store timezone due to incorrect casting
function.

Changes made to fix the issues -

Added appropriate CAST from TIMESTAMP to respective return types of date functions to ensure proper accounting for
timezone setting. Added timestamptz_datetimeoffset function for converting timestamp with time zone to
datetimeoffset. It ensures to store timezone property similar to timestamptz_datetime2 and timestamptz_datetime
functions.

Task: BABEL-5069
Signed-off-by: Anikait Agrawal <agraani@amazon.com>

17 of 20 new or added lines in 3 files covered. (85.0%)

42789 of 58083 relevant lines covered (73.67%)

140646.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
85.21
-0.23% contrib/babelfishpg_common/src/datetimeoffset.c
Jobs
ID Job ID Ran Files Coverage
1 10935044627.1 19 Sep 2024 06:15AM UTC 114
73.67
GitHub Action Run
Source Files on build 10935044627
  • Tree
  • List 114
  • Changed 74
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10935044627
  • 32874dea on github
  • Prev Build on BABEL_3_X_DEV (#10934830818)
  • Next Build on BABEL_3_X_DEV (#10935322237)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc