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

babelfish-for-postgresql / babelfish_extensions / 15724975994
77%

Build:
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 18 Jun 2025 06:26AM 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

18 Jun 2025 05:50AM UTC coverage: 75.565% (+0.005%) from 75.56%
15724975994

push

github

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

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

48884 of 64691 relevant lines covered (75.57%)

317301.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 15724975994.1 18 Jun 2025 06:26AM UTC 119
75.57
GitHub Action Run
Source Files on build 15724975994
  • Tree
  • List 119
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15724975994
  • ab6bb4d1 on github
  • Prev Build on BABEL_5_X_DEV (#15715299284)
  • Next Build on BABEL_5_X_DEV (#15727369362)
  • 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