The rule searches for where the xquery treat function is used and determines if the treat is necessary. The plan is modified if any of these items is not required.
Before plan__parent ASSIGN( $v1 : treat( $v0, \@type_expression ) ) ASSIGN( $v0 : $$constant ) plan__child Where $$constant is of \@type_expression. After plan__parent ASSIGN( $v1 : $v0 ) ASSIGN( $v0 : $$constant ) plan__child
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.