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

babelfish-for-postgresql / babelfish_extensions / 10937107580
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Sep 2024 09:07AM UTC
Jobs 1
Files 115
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 08:16AM UTC coverage: 74.431% (+0.02%) from 74.416%
10937107580

push

github

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

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>

18 of 22 new or added lines in 3 files covered. (81.82%)

44907 of 60334 relevant lines covered (74.43%)

156843.42 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
85.05
-0.39% contrib/babelfishpg_common/src/datetimeoffset.c
Jobs
ID Job ID Ran Files Coverage
1 10937107580.1 19 Sep 2024 09:07AM UTC 115
74.43
GitHub Action Run
Source Files on build 10937107580
  • Tree
  • List 115
  • Changed 72
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10937107580
  • 576373c5 on github
  • Prev Build on BABEL_4_X_DEV (#10934281275)
  • Next Build on BABEL_4_X_DEV (#10956404431)
  • 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

© 2025 Coveralls, Inc