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

babelfish-for-postgresql / babelfish_extensions / 12649741558 / 1
76%
BABEL_5_X_DEV: 77%

Build:
Build:
LAST BUILD BRANCH: jira-babel-6270
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 07 Jan 2025 11:04AM UTC
Files 115
Run time 6s
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

07 Jan 2025 10:27AM UTC coverage: 74.91% (+0.02%) from 74.891%
12649741558.1

push

github

web-flow
Fix hashbytes behaviour for nvarchar input (#3259)

PROBLEM: while having nvarchar input in hashbytes we were considering the encoding as input encoding in babelfish where as in tsql we use UTF16 encoding for nvarchar irrespective of input encoding.

RCA: we were considering varchar and nvarchar as same, whereas we should use input encoding for varchar and UTF16 encoding for nvarchar.

FIX: So we need to identify that if the input is nvarchar then we will do the UTF16 encoding.
In the function hashbytes, we were converting varchar/nvarchar to varbinary, so if we get input as nvarchar then we will first convert the input string to UTF16 encoding then convert to varbinary.
There we created the overloaded function and also select the best candidate among depending on the second argument(i.e varchar/nvarchar/varbinary).

Task: BABEL-4891
Signed-off-by: pranav jain <pranavjc@amazon.com>

46800 of 62475 relevant lines covered (74.91%)

166318.43 hits per line

Source Files on job 12649741558.1
  • Tree
  • List 115
  • Changed 73
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 12649741558
  • be9f87c8 on github
  • Prev Job for on BABEL_4_X_DEV (#12645765192.1)
  • Next Job for on BABEL_4_X_DEV (#12652927314.1)
  • 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