Class HasVariantValueNodeVisitor
java.lang.Object
org.apache.derby.impl.sql.compile.HasVariantValueNodeVisitor
- All Implemented Interfaces:
Visitor
Find out if we have a value node with variant type less than what the
caller desires, anywhere below us. Stop traversal as soon as we find one.
This is used in two places: one to check the values clause of an insert
statement; i.e
values (?, 1, foobar());
If all the expressions in the values clause are QUERY_INVARIANT (and an
exception is made for parameters) then we can cache the results in the
RowResultNode. This is useful when we have a prepared insert statement which
is repeatedly executed.
insert into