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

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

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 07 Jan 2025 11:04AM UTC
Jobs 1
Files 115
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

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

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>

39 of 39 new or added lines in 3 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

46800 of 62475 relevant lines covered (74.91%)

166318.43 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
76.03
-0.63% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
Jobs
ID Job ID Ran Files Coverage
1 12649741558.1 07 Jan 2025 11:04AM UTC 115
74.91
GitHub Action Run
Source Files on build 12649741558
  • Tree
  • List 115
  • Changed 73
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12649741558
  • be9f87c8 on github
  • Prev Build on BABEL_4_X_DEV (#12645765192)
  • Next Build on BABEL_4_X_DEV (#12652927314)
  • 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