Skip to content

docs: show integer results for xmlisvalid in XML guide - #641

Open
lkhhfd1 wants to merge 3 commits into
IvorySQL:v5.6from
lkhhfd1:docs/xmlisvalid-integer-result
Open

lkhhfd1 wants to merge 3 commits into
IvorySQL:v5.6from
lkhhfd1:docs/xmlisvalid-integer-result

Conversation

@lkhhfd1

@lkhhfd1 lkhhfd1 commented Dec 1, 2026

Copy link
Copy Markdown

Correct the xmlisvalid examples in the EN and CN XML guides (closes #527).

The guides showed f/t, making the result look like a PostgreSQL Boolean. IvorySQL 5.6 registers sys.XMLISVALID(sys.xmltype) with an INTEGER return type; the regression expectations are 0 for <a> and 1 for <a/>. Both examples now show the integer results and state the return type, which matters when readers use the value in a numeric comparison.

Values verified against kernel sources: xml_functions--1.0.sql (RETURNS INTEGER) and ora_xml_functions.out (0 / 1). Docs-only, LF-only, diff limited to the two XML guide pages. CLA signed.

Closes #527

The EN and CN XML guides showed f/t for xmlisvalid(XMLTYPE(...)), making the
result look like a PostgreSQL Boolean. IvorySQL 5.6 registers sys.XMLISVALID
with an INTEGER return type; the regression expectations are 0 for '<a>' and 1
for '<a/>'. Update both examples to integers and state the return type, since
readers use the result in numeric comparisons.

closes IvorySQL#527

Assisted-by: LLM
Signed-off-by: lkhhfd1 <1356915765@qq.com>
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🚀 IvorySQL-Docs Preview Ready

This branch was successfully deployed

1 active deployment
pull request — d60a6f37 Deployed Dec 1, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show integer XMLISVALID results in the XML guide

1 participant