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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 01 Aug 2024 11:58AM 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

01 Aug 2024 11:19AM UTC coverage: 73.535% (+0.005%) from 73.53%
10197304316

push

github

web-flow
Added wrapper functions for REPLACE() Function to fix issue with input containing multi-byte characters. (#2790)

Currently for string function REPLACE(), the existing definition takes input as type TEXT and return type is TEXT. This
leads to incorrect output for input containing multi-byte characters with NCHAR and NVARCHAR datatype for input, as
the return datatype should have been NVARCHAR for NCHAR and NVARCHAR datatype.

This commit will fix this issue by adding wrapper functions with correct input and return datatype for REPLACE()
function.

This commit also updates the castcontext of CAST from bbf_binary to varchar, to IMPLICIT which was previously
marked as ASSIGNMENT. Due to this REPLACE function call with input type binary was not able choose the available
replace definitions with argument datatype VARCHAR/NVARCHAR.

Task: BABEL-4836
Signed-off-by: Rohit Bhagat <rohitbgt@amazon.com>

13 of 14 new or added lines in 2 files covered. (92.86%)

454 existing lines in 5 files now uncovered.

42450 of 57728 relevant lines covered (73.53%)

110983.62 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
79.43
0.54% contrib/babelfishpg_tsql/src/pltsql_coerce.c

Uncovered Existing Lines

Lines Coverage ∆ File
1
70.48
-0.22% contrib/babelfishpg_tds/src/backend/tds/tdsutils.c
1
96.28
-0.43% contrib/babelfishpg_common/src/typecode.c
12
95.35
0.01% contrib/babelfishpg_tsql/src/string.c
89
79.43
0.54% contrib/babelfishpg_tsql/src/pltsql_coerce.c
351
89.16
-0.03% contrib/babelfishpg_tsql/src/tsqlIface.cpp
Jobs
ID Job ID Ran Files Coverage
1 10197304316.1 01 Aug 2024 11:58AM UTC 114
73.53
GitHub Action Run
Source Files on build 10197304316
  • Tree
  • List 114
  • Changed 80
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #10197304316
  • 1702ab3b on github
  • Prev Build on BABEL_3_X_DEV (#10180515222)
  • Next Build on BABEL_3_X_DEV (#10197752006)
  • 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