Allows to convert SQL text (common tags) of XSQL to native code of the agent in run-time. If the text contains variables, they will not be processed, so it is only valid for the constant SQL fragments.
1 sql.xsql2text
<sql.xsql2text type='type'>
<value /> *
</sql.xsql2text>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Atype | string | Constant with the data type. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Evalue | object | Text you want to convert. |
Returns | |
---|---|
Type | Description |
string | Returns the converted code. |
Example
Returns the text converted according to the agent.
Copy
<xsql-script name='sql_xsql2text'> <body> <println> <sql.xsql2text> <xsql-text> <nvl>tipcon, ''</nvl> = '' </xsql-text> </sql.xsql2text> </println> </body> </xsql-script>