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

amazon-aurora / babelfish_extensions / 12755301246
75%
main: 77%

Build:
Build:
LAST BUILD BRANCH: community-merge-15x
DEFAULT BRANCH: main
Ran 13 Jan 2025 08:47PM 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

13 Jan 2025 08:14PM UTC coverage: 74.959% (+0.08%) from 74.88%
12755301246

push

github

Bo Li
Implement modulo operator for MONEY/SMALLMONEY types

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

1071 existing lines in 10 files now uncovered.

46986 of 62682 relevant lines covered (74.96%)

167236.39 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
69.52
0.16% contrib/babelfishpg_money/fixeddecimal.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.13
-0.13% contrib/babelfishpg_tsql/src/collation.c
5
85.27
0.12% contrib/babelfishpg_tsql/src/rolecmds.c
6
89.54
0.07% contrib/babelfishpg_tds/src/backend/tds/tds_srv.c
16
95.52
0.17% contrib/babelfishpg_tsql/src/string.c
102
84.41
-1.55% contrib/babelfishpg_common/src/varchar.c
129
83.33
1.83% contrib/babelfishpg_tsql/src/pltsql_coerce.c
134
80.87
1.27% contrib/babelfishpg_common/src/varbinary.c
150
90.22
0.04% contrib/babelfishpg_tsql/src/pl_handler.c
263
80.04
-0.95% contrib/babelfishpg_tds/src/backend/tds/tdsresponse.c
265
69.52
0.16% contrib/babelfishpg_money/fixeddecimal.c
Jobs
ID Job ID Ran Files Coverage
1 12755301246.1 13 Jan 2025 08:47PM UTC 115
74.96
GitHub Action Run
Source Files on build 12755301246
  • Tree
  • List 115
  • Changed 85
  • Source Changed 10
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12755301246
  • 5c824a31 on github
  • Prev Build on babel_5480_dev17 (#12755117505)
  • Next Build on babel_5480_dev17 (#12756486160)
  • 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