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

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

Build:
Build:
LAST BUILD BRANCH: babel-6223
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 19 Jun 2025 06:24AM UTC
Jobs 1
Files 119
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

19 Jun 2025 05:51AM UTC coverage: 75.53% (+0.009%) from 75.521%
15750572467

push

github

web-flow
fix for incorrect behaviour of patindex function (#3825) (#3849)

The problem is with the PATINDEX function's behavior when searching for a suffix pattern (pattern at the end of a string).

SELECT PATINDEX('%ing', 'This is a testing string') AS EndPattern

Current behavior:
It returns 15 (matching 'testing'). This is incorrect because we're looking for a suffix match

Expected behavior:
It should return 22 (matching 'string'), because '%ing' should match 'ing' at the end of the string

When we use '%ing' as a pattern, it should specifically match 'ing' when it appears at the end of the string
Instead, it's matching the first occurrence of 'ing' anywhere in the string

Another problem is that when we do a wildcard match i.e when the pattern is '%', function should return the output 1 as in a wildcard match first character will be matched. Current behaviour gives 0 as worng output, fixed that behaviour.

Task: BABEL-5817

Signed-off-by: Pranav Jain pranavjc@amazon.com

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

48719 of 64503 relevant lines covered (75.53%)

325139.2 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15750572467.1 19 Jun 2025 06:24AM UTC 119
75.53
GitHub Action Run
Source Files on build 15750572467
  • Tree
  • List 119
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15750572467
  • 07df37e1 on github
  • Prev Build on BABEL_4_X_DEV (#15745705409)
  • Next Build on BABEL_4_X_DEV (#15751208276)
  • 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