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

babelfish-for-postgresql / babelfish_extensions / 11796565542
73%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: 5577-5x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 12 Nov 2024 12:29PM 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

12 Nov 2024 11:44AM UTC coverage: 73.127% (+0.01%) from 73.116%
11796565542

push

github

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

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

3 existing lines in 1 file now uncovered.

42345 of 57906 relevant lines covered (73.13%)

122267.21 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
85.21
-0.23% contrib/babelfishpg_common/src/datetimeoffset.c

Uncovered Existing Lines

Lines Coverage ∆ File
3
73.33
-0.95% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 11796565542.1 12 Nov 2024 12:29PM UTC 114
73.13
GitHub Action Run
Source Files on build 11796565542
  • Tree
  • List 114
  • Changed 68
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11796565542
  • 4432e835 on github
  • Prev Build on BABEL_3_7_STABLE (#10558633325)
  • Next Build on BABEL_3_7_STABLE (#11818144975)
  • 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