× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

*Message ID . . . . . . : CPD4318*

*Message . . . . : Derived operands not valid for operator XMLTABLE.

* code
34. *

* 34 -- The operand is BINARY, VARBINARY, BLOB, or character string data*

*with the FOR BIT DATA attribute in XMLTABLE. *

This occurs when I have a variable declared as CHAR

*DCL-S authorname Char(64);*

and use it as a second substitution variable of the row-selector XPath
expression in the XMLTABLE function :






*:authorname AS "requested_author"*


*Book_Id VARCHAR(10) PATH '@id',*

*Book_Sequence_No FOR ORDINALITY*


The error does not occurs when the substitution variable is declared as an
integer and the SQL instruction returns the correct data set.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.