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

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

Build:
Build:
LAST BUILD BRANCH: BABEL_4_X_DEV
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 28 May 2024 07:21PM 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

28 May 2024 06:41PM UTC coverage: 72.901% (+0.02%) from 72.886%
9274688228

push

github

web-flow
Fix issue with convert function when converting string to date, datetimeoffset, datetime2, datetime, smalldatetime or time (#2571)

For converting string to datetime2, datetimeoffset and smalldatetime using convert function, we are directly using cast function which will convert the string to given type with default style. Added support to use corresponding SQL helper functions defined which will fix this issue.
For conversion of string to date, datetime, smalldatetime and time using convert function, there are helper functions defined but are unable to handle all the supported datetime string literals. Refactored these definitions and fixed this issue.
For conversion of string to datetime2 and datetimeoffset using convert function, there are no helper functions defined which handles this conversion as there are for conversion of string to date, datetime, smalldatetime and time. Added definitions to handle these datatypes as well.
Function sys.babelfish_get_microsecs_from_fractsecs() is unable to handle the edge case where fractional seconds get overflowed after rounding it to given scale.
Function babelfish_get_timeunit_from_string only returns HOURS, MINUTES, SECONDS and FRACTSECONDS from a given time string. Extended this function to return OFFHOURS, OFFMINUTES and OFFSIGN to get details of timeoffset from time string.

Cherry-picked from: #2613

Issues Resolved: BABEL-4896

Signed-off-by: Rohit Bhagat rohitbgt@amazon.com

41911 of 57490 relevant lines covered (72.9%)

109900.25 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
84.97
-0.27% contrib/babelfishpg_tsql/src/collation.c
Jobs
ID Job ID Ran Files Coverage
1 9274688228.1 28 May 2024 07:21PM UTC 114
72.9
GitHub Action Run
Source Files on build 9274688228
  • Tree
  • List 114
  • Changed 76
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9274688228
  • 702dcfb8 on github
  • Prev Build on BABEL_4_X_DEV (#9273582124)
  • Next Build on BABEL_4_X_DEV (#9287798638)
  • 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