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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 05 Mar 2024 01:43PM 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

05 Mar 2024 01:07PM UTC coverage: 72.634% (+0.002%) from 72.632%
8156793662

push

github

web-flow
Call pltsql_predicate_transformer for NOT expr argument (#2409)

In pltsql_predicate_transformer we recursively call the function for arguments for AND / OR clause. We did not do this
for NOT clause because of that there were cases where LIKE operator inside a NOT clause was not transformed.

example: SELECT COUNT(*) FROM babel_4566 WHERE 1=1 AND NOT OBJECT_NAME(id) LIKE '%Blah%'
In this query the top clause is AND. So, we analyse its arguments individually. Then one of the predicates is a NOT
clause and previously we directly returned it without transforming its like operator. With this fix, the arguments of NOT
will again be passed to pltsql_predicate_transformer for further break down and transformation.

As a fix, we handle NOT clause similar to AND/OR and call the pltsql_predicate_transformer recursively for its
argument. NOT clause only has one argument, but ipltsql_predicate_transformer still needs to be called for its
argument again.

Task: BABEL-4566
Signed-off-by: Tanzeel Khan <tzlkhan@amazon.com>

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

40468 of 55715 relevant lines covered (72.63%)

57678.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8156793662.1 05 Mar 2024 01:43PM UTC 114
72.63
GitHub Action Run
Source Files on build 8156793662
  • Tree
  • List 114
  • Changed 62
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8156793662
  • 4eeefc0f on github
  • Prev Build on BABEL_3_X_DEV (#8022025078)
  • Next Build on BABEL_3_X_DEV (#8199192016)
  • 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