23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PRO_ARR_DESCAPE function<br />

Note Each char_expression and the result can contain multi-byte characters. The start_pos<br />

argument specifies the character position, not a byte position. Character comparisons are case<br />

sensitive and are determined by sort weights in the collation table in the database.<br />

114<br />

Compatibility<br />

Progress extension<br />

PRO_ARR_DESCAPE function<br />

Syntax<br />

Removes escape characters from a single element of a character array. PRO_ARR_DESCAPE scans<br />

the char_element looking for the separator character ( ; ) or an escape character ( ~ ). The<br />

function removes an escape character when it finds any of these constructs:<br />

• Escape character followed by a separator character ( ~; )<br />

• Escape character followed by another escape character ( ~~ )<br />

• Escape character followed by a NULL terminator ( ~\0 )<br />

PRO_ARR_DESCAPE( 'char_element' ) ;<br />

char_element<br />

The character representation of an array element, without any leading or trailing<br />

separators. Must be data type NVARCHAR, VARCHAR, or CHAR.<br />

Examples The following example returns the string 'aa;aa':<br />

PRO_ARR_DESCAPE('aa~;aa') ;<br />

The following example returns the string 'aa~aa'. There is no change, since another special<br />

character does not follow the escape character:<br />

PRO_ARR_DESCAPE('aa~aa') ;<br />

This example returns the string 'aa~;aa':<br />

PRO_ARR_DESCAPE('aa~;aa') ;<br />

Note char_element should not be the name of an array column, since the column contains true<br />

separators that would be destroyed by this function.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!