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

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

Build:
Build:
LAST BUILD BRANCH: datetime2fromparts_bugfix
DEFAULT BRANCH: BABEL_5_X_DEV
Ran 24 May 2024 12:22AM 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

23 May 2024 11:43PM UTC coverage: 72.886%. Remained the same
9216318282

push

github

web-flow
Update TDS error handling to support special characters (#2603)


This commit modifies TDS error message handling to add support for special characters such as emojis
An earlier commit introduced error handling when users attempt to create a procedure / function with the same name as one that is already defined. In recent testing, we found that if a user attempts to recreate an existing procedure that contains certain special characters, there will be a TDS error.
We are relying on pg_mbstrlen to calculate the error string length (code link). This pg_mbstrlen would calculate length of certain characters such as emoji and others as a 1 whereas it should be counted as 2 in UTF16. Hence, for given error string, pg_mbstrlen is calculating the length of error string as 91 whereas it should be 93 characters in UTF16. So we need to update this logic to compute messageLen_16 to use messageUtf16.len / 2 instead of using pg_mbstrlen.

Issue Resolved: BABEL-4972
Signed-off-by: Jake Owen <owjco@amazon.com>

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

41902 of 57490 relevant lines covered (72.89%)

108166.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9216318282.1 24 May 2024 12:22AM UTC 114
72.89
GitHub Action Run
Source Files on build 9216318282
  • Tree
  • List 114
  • Changed 64
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9216318282
  • 1660f0c7 on github
  • Prev Build on BABEL_4_X_DEV (#9206167031)
  • Next Build on BABEL_4_X_DEV (#9225975685)
  • 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