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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 15 Jan 2025 09:50PM 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

15 Jan 2025 09:16PM UTC coverage: 73.836% (+0.006%) from 73.83%
12797160734

push

github

web-flow
Implement modulo operator for MONEY/SMALLMONEY types (#3408)

Description
-----------
Due to the missing modulo operator for MONEY/SMALLMONEY types, it will choose
the other Postgres internal alternatives like int4mod and numeric_mod, which will
involve additional implicit CASTing between MONEY/SMALLMONEY types and other types.
These CASTings could cause loss of precision and wrong results. What's more, the result
of calculation won't be MONEY/SMALLMONEY types any more.

Fix
---
Implement the modulo function and operator for MONEY/SMALLMONEY types. The reason why we don't
need to implement the functions between MONEY/SMALLMONEY types and interger types is that it
will choose the MONEY-MONEY/SMALLMONEY-SMALLMONEY functions to calculate. And the result type is
expected.

Task: BABEL-5480
Signed-off-by: Bo Li <zboli@amazon.com>

8 of 9 new or added lines in 1 file covered. (88.89%)

43329 of 58683 relevant lines covered (73.84%)

146104.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
69.52
0.15% contrib/babelfishpg_money/fixeddecimal.c
Jobs
ID Job ID Ran Files Coverage
1 12797160734.1 15 Jan 2025 09:50PM UTC 114
73.84
GitHub Action Run
Source Files on build 12797160734
  • Tree
  • List 114
  • Changed 68
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12797160734
  • d0939967 on github
  • Prev Build on BABEL_3_X_DEV (#12763991277)
  • Next Build on BABEL_3_X_DEV (#12825420080)
  • 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