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

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

Build:
Build:
LAST BUILD BRANCH: BABEL-5577
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 26 Jul 2024 10:20AM 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

26 Jul 2024 09:38AM UTC coverage: 73.593% (+0.05%) from 73.545%
10109171598

push

github

web-flow
Support strpos & replace for non deterministic collation (#2716)

Support strpos, charindex and replace for Accent insensitive collations in Babelfish. We use ICU functions such as
usearch and ucol_strcoll to implement this support.

sys.strpos()/ sys.charindex(): we use usearch to find the first available match in source string. If collation is CS_AS then
we also double check the match using ucol_strcoll. This is needed since usearch can return false positive for case
sensitive search when collation is colstrength primary. If ucol_strcoll fails for the match, we skip to the next match.

sys.replace: Similar to strpos we find all the matches using usearch, double check it using ucol_strcoll for CS_AS. For
the matched portion of the string we copy the replacement string instead while copying the remaining portion from the
original source string.

Engine PR: babelfish-for-postgresql/postgresql_modified_for_babelfish#402
Task: BABEL-4850
Signed-off-by: Tanzeel Khan <tzlkhan@amazon.com>

136 of 146 new or added lines in 3 files covered. (93.15%)

1 existing line in 1 file now uncovered.

43713 of 59398 relevant lines covered (73.59%)

113402.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
80.3
-0.04% contrib/babelfishpg_tsql/src/hooks.c
4
77.87
0.37% contrib/babelfishpg_common/src/collation.c
4
87.73
2.61% contrib/babelfishpg_tsql/src/collation.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
80.3
-0.04% contrib/babelfishpg_tsql/src/hooks.c
Jobs
ID Job ID Ran Files Coverage
1 10109171598.1 26 Jul 2024 10:20AM UTC 115
73.59
GitHub Action Run
Source Files on build 10109171598
  • Tree
  • List 115
  • Changed 68
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10109171598
  • 97e9f203 on github
  • Prev Build on BABEL_4_X_DEV (#10106788993)
  • Next Build on BABEL_4_X_DEV (#10111532443)
  • 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