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

babelfish-for-postgresql / babelfish_extensions / 27553365372 / 1
77%
BABEL_6_X_DEV: 77%

Build:
DEFAULT BRANCH: BABEL_6_X_DEV
Ran 15 Jun 2026 02:56PM UTC
Files 128
Run time 11s
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

15 Jun 2026 02:28PM UTC coverage: 76.947%. Remained the same
27553365372.1

push

github

web-flow
Fix xmlns:xsi placement for ELEMENTS XSINIL with ROOT in FOR XML RAW/PATH (#4855)

When using ELEMENTS XSINIL together with ROOT in FOR XML RAW or PATH mode, Babelfish was placing the
xmlns:xsi namespace declaration on each row element instead of on the ROOT element where it is expected to be at
ROOT element only.

Before:

<data xmlns:xsi="..."><row xmlns:xsi="..."><a>1</a><b xsi:nil="true"/></row></data>

After:

<data xmlns:xsi="..."><row><a>1</a><b xsi:nil="true"/></row></data>

When ROOT already carries the xmlns:xsi declaration, the per-row declaration is now suppressed. Without ROOT,
the per-row declaration is still emitted (matching T-SQL behavior for the no-ROOT case).

The aggregate state now tracks a has_root flag, set when the ROOT open-tag is emitted, and threads it into the
RAW and PATH emitters. When ROOT is present they skip the row-level xmlns:xsi since the ROOT already carries it;
without ROOT the existing emission is unchanged. The same flag also handles PATH('') with XSINIL (where xmlns
would otherwise repeat on each column element) and RAW('') with XSINIL — there the ROOT tag itself now
correctly includes xmlns:xsi.

Task: BABEL-6429

Signed-off-by: Japleen Kaur <amjj@amazon.com>

54384 of 70677 relevant lines covered (76.95%)

604659.94 hits per line

Source Files on job 27553365372.1
  • Tree
  • List 128
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 27553365372
  • 2b443673 on github
  • Prev Job for on BABEL_6_X_DEV (#27352956893.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