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

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

Build:
Build:
LAST BUILD BRANCH: fixing_year_4x
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 03 Sep 2024 10:48AM 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

03 Sep 2024 10:00AM UTC coverage: 73.611% (+0.002%) from 73.609%
10680746728

push

github

web-flow
Fixed Cast from sys.varchar to TIME shows unexpected result due to undefined typmod (#2898)

While casting from varchar to TIME, shows unexpected result due to undefined typmod.
It was discovered that some test related to TIME fails randomly on arch64 machine and passed on other 32 bit machines.For query like -- select cast(cast('12:45:37.123' as varchar) as time)

Output :

32bit machines: 12:45:37.1230000
arch64: 12:45:37.0000000

Expected result : 12:45:37.1230000

Reason: Junk value for arch32 is set to a value greater then 7. So it will read real value till 7, Whereas in arch64 junk value is set to 0 due to some compiler optimisation. It won't read any value after '.' setting it to zero.

Changes made to fix the issues --

time_in function was called from varchar2time function with one argument whereas time_in function expects 3 arguments, 3rd one beign the typmod. As this argument was not passed it was picking junk value. This is fixed by calculating tymod in varchar2time and passing correct value of typmod to time_in function.
Also added test cases for this purpose.

Task: BABEL-5179
Signed-off-by: yashneet vinayak <yashneet@amazon.com>

4 of 4 new or added lines in 1 file covered. (100.0%)

42667 of 57963 relevant lines covered (73.61%)

140311.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10680746728.1 03 Sep 2024 10:48AM UTC 114
73.61
GitHub Action Run
Source Files on build 10680746728
  • Tree
  • List 114
  • Changed 68
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10680746728
  • 9237c6bf on github
  • Prev Build on BABEL_3_X_DEV (#10660602152)
  • Next Build on BABEL_3_X_DEV (#10698241916)
  • 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