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

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

Build:
Build:
LAST BUILD BRANCH: fix_script_injection
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 26 Sep 2024 03:45PM 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

26 Sep 2024 02:42PM UTC coverage: 74.475% (+0.005%) from 74.47%
11054622601

push

github

web-flow
Fix protocol violation in USE DB when database name contains multibyte characters (#2841)

When database name contains a character which is multi byte encoded in UTF8 then USE DB with that database name throws protocol error in SQLCMD.
```
-- SQL CMD connection
1> CREATE DATABASE ["龙漫远; 龍漫😃😄漫遠.¢£€¥"]
2> go
1> USE ["龙漫远; 龍漫😃😄漫遠.¢£€¥"]
2> go
SqlState HY000, Protocol error in TDS stream.
```
This does not show up in our JDBC framework since we ignore such notice message and do not flush it to output file.

Length of string in TDS stream should be in UTF-16 characters length and not number of bytes.
Hence replaced strlen() with UTF16 number of chars.


Task: [BABEL-5153]

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

2 of 2 new or added lines in 1 file covered. (100.0%)

219 existing lines in 6 files now uncovered.

44968 of 60380 relevant lines covered (74.47%)

162783.64 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
76.03
-0.63% contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
3
97.3
-0.01% contrib/babelfishpg_tsql/src/session.c
6
90.15
0.08% contrib/babelfishpg_tds/src/backend/tds/tds_srv.c
20
81.65
0.01% contrib/babelfishpg_tsql/src/pl_exec-2.c
47
84.36
0.36% contrib/babelfishpg_tds/src/backend/tds/tdsprotocol.c
141
76.39
0.37% contrib/babelfishpg_tds/src/backend/tds/tdslogin.c
Jobs
ID Job ID Ran Files Coverage
1 11054622601.1 26 Sep 2024 03:45PM UTC 115
74.47
GitHub Action Run
Source Files on build 11054622601
  • Tree
  • List 115
  • Changed 73
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11054622601
  • 2be23075 on github
  • Prev Build on BABEL_4_X_DEV (#11042958351)
  • Next Build on BABEL_4_X_DEV (#11056607399)
  • 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