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

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

Build:
Build:
LAST BUILD BRANCH: babel_5688_min
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 12 Nov 2024 01:46PM 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

12 Nov 2024 12:49PM UTC coverage: 73.702% (+0.005%) from 73.697%
11797612390

push

github

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

* 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%)

6 existing lines in 2 files now uncovered.

44235 of 60019 relevant lines covered (73.7%)

127042.08 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
85.05
-0.39% contrib/babelfishpg_common/src/datetimeoffset.c

Uncovered Existing Lines

Lines Coverage ∆ File
3
73.6
-0.62% contrib/babelfishpg_tds/src/backend/tds/tdsutils.c
3
75.87
-0.95% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 11797612390.1 12 Nov 2024 01:46PM UTC 115
73.7
GitHub Action Run
Source Files on build 11797612390
  • Tree
  • List 115
  • Changed 72
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11797612390
  • a51c6351 on github
  • Prev Build on BABEL_4_3_STABLE (#10558623549)
  • Next Build on BABEL_4_3_STABLE (#11818055981)
  • 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