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

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

Build:
Build:
LAST BUILD BRANCH: BABEL_4_X_DEV
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 04 Sep 2024 09:29AM UTC
Jobs 1
Files 114
Run time 5min
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

04 Sep 2024 08:44AM UTC coverage: 73.615% (+0.004%) from 73.611%
10698241916

push

github

web-flow
Fix valgrind warning related to CStringDatum used instead of NameDatum plus some more fixes (#2908)

Cherry Picked from #2906

This PR fixes multiple valgrind warnings.
Replaced all CStringGetDatum occurrences with NameGetDatum when doing CatalogTupleUpdate or Insert on a name column. NameDatum is always of NAMEDATALEN length and null padded if needed.

Fix string literal to rowversion or timestamp cast warning. Row version is always of fixed length but when we cast string literal to rowversion for a smaller input string, we set the typmod correctly but do not actually blank pad the input string. As a fix we will simply reuse the varbinary/binary handling for string literals for row versions and timestamp, this is possible because row versions and timestamp were getting internally converted to varbinary type.

Make sure string is not empty before accessing its last character in sp_execute_postgresql & sp_addrolemember & sp_droprolemember &sp_rename_internal
   
 In TdsRecvTypeTable we were not initialising all the entries of nulls array. Fixed that.
 
When logging TVP parameter we simply want to log the name, but we were sending CString as input with a record type which is wrong. To fix it, we will now use CString type for logging TVP name.

Issues Resolved: 

[BABEL-5104]
[BABEL-5221]
[BABEL-4634]
[BABEL-4644]

Signed-off-by: Tanzeel Khan tzlkhan@amazon.com

42 of 46 new or added lines in 10 files covered. (91.3%)

2 existing lines in 2 files now uncovered.

42683 of 57981 relevant lines covered (73.62%)

139983.34 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
71.48
-0.04% contrib/babelfishpg_tds/src/backend/tds/tdsrpc.c
3
83.5
-0.08% contrib/babelfishpg_tsql/src/hooks.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.5
-0.08% contrib/babelfishpg_tsql/src/hooks.c
1
71.48
-0.04% contrib/babelfishpg_tds/src/backend/tds/tdsrpc.c
Jobs
ID Job ID Ran Files Coverage
1 10698241916.1 04 Sep 2024 09:29AM UTC 114
73.62
GitHub Action Run
Source Files on build 10698241916
  • Tree
  • List 114
  • Changed 47
  • Source Changed 10
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10698241916
  • 42abbacc on github
  • Prev Build on BABEL_3_X_DEV (#10680746728)
  • Next Build on BABEL_3_X_DEV (#10718311824)
  • 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