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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 24 Jan 2024 10:27AM UTC
Jobs 1
Files 113
Run time 9s
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

24 Jan 2024 09:50AM UTC coverage: 71.843% (+0.001%) from 71.842%
7638378864

push

github

web-flow
Fix Invalid Protocol Error when using CachedRowSet with JDBC Driver (#2278)

When a user uses CachedRowSet API present in jdbc driver , an invalid TDS stream error is thrown by the driver for Babelfish, this is caused due to the improper calculation of nullMapSize that is sent after the NBCROW row token for sp_cursorfetch RPC call.
According to old logic ,Consider a case where the result set has 32 columns (or any perfect multiple of 8)
nullMapSize = (natts + 7) / 8;
This gives us the size as 4 but we also send a ROWSTAT column along with sp_cursor* RPC calls (Check SendCursorResponse)
So the driver gets the length of columns as 33 instead of 32 from ColMetadata token and uses this information to calculate the size of null map (link) which turns out to be 5 ,this doesnt cause any immediate issue but will cause the further bytes in the packet to be offset by 1 leading to incorrect values.

The new logic fixes this by adding rowstat column into size calculation and also uses bitshift instead of division to improve performance.
Issues Resolved

BABEL-4511

Signed-off-by: Nirmit Shah nirmisha@amazon.com

Signed-off-by: Nirmit Shah nirmisha@amazon.com

39811 of 55414 relevant lines covered (71.84%)

58854.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7638378864.1 24 Jan 2024 10:27AM UTC 113
71.84
GitHub Action Run
Source Files on build 7638378864
  • Tree
  • List 113
  • Changed 38
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #7638378864
  • 6cf725b6 on github
  • Prev Build on BABEL_4_X_DEV (#7624486460)
  • Next Build on BABEL_4_X_DEV (#7652855123)
  • 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