Hi.
I found that "next value for sequence" statement are executed against
all nodes, but "call nextval('sequence')" statement are not.
attached patch fixed this problem.
Best regards.
Index: src/main/org/h2/expression/Function.java
===================================================================
--- src/main/org/h2/expression/Function.java (revision 2624)
+++ src/main/org/h2/expression/Function.java (working copy)
@@ -1937,6 +1937,9 @@
if (visitor.getType() == ExpressionVisitor.DETERMINISTIC && !
info.deterministic) {
return false;
}
+ if(info.type == NEXTVAL){
+ return false;
+ }
for (Expression e : args) {
if (e != null && !e.isEverything(visitor)) {
return false;
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en.