Repository: tinkerpop
Updated Branches:
  refs/heads/master 75502eef2 -> 198259734


g.addE(label).property() didn't work when specifying an id to a property CTR


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/073f452e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/073f452e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/073f452e

Branch: refs/heads/master
Commit: 073f452ec0bef2813cbbaaa1ec62df91c7d57118
Parents: 75502ee
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Thu Aug 10 13:33:22 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Aug 10 13:33:22 2017 -0400

----------------------------------------------------------------------
 .../gremlin/process/traversal/dsl/graph/GraphTraversal.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/073f452e/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
----------------------------------------------------------------------
diff --git 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
index 201dc27..a97c88b 100644
--- 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
+++ 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java
@@ -64,6 +64,7 @@ import 
org.apache.tinkerpop.gremlin.process.traversal.step.filter.TimeLimitStep;
 import 
org.apache.tinkerpop.gremlin.process.traversal.step.filter.TraversalFilterStep;
 import 
org.apache.tinkerpop.gremlin.process.traversal.step.filter.WherePredicateStep;
 import 
org.apache.tinkerpop.gremlin.process.traversal.step.filter.WhereTraversalStep;
+import 
org.apache.tinkerpop.gremlin.process.traversal.step.map.AddEdgeStartStep;
 import org.apache.tinkerpop.gremlin.process.traversal.step.map.AddEdgeStep;
 import 
org.apache.tinkerpop.gremlin.process.traversal.step.map.AddVertexStartStep;
 import org.apache.tinkerpop.gremlin.process.traversal.step.map.AddVertexStep;
@@ -2004,7 +2005,7 @@ public interface GraphTraversal<S, E> extends 
Traversal<S, E> {
         // if it can be detected that this call to property() is related to an 
addV/E() then we can attempt to fold
         // the properties into that step to gain an optimization for those 
graphs that support such capabilities.
         final Step endStep = this.asAdmin().getEndStep();
-        if ((endStep instanceof AddVertexStep || endStep instanceof 
AddEdgeStep || endStep instanceof AddVertexStartStep) &&
+        if ((endStep instanceof AddVertexStep || endStep instanceof 
AddEdgeStep || endStep instanceof AddVertexStartStep || endStep instanceof 
AddEdgeStartStep) &&
                 keyValues.length == 0 && null == cardinality) {
             ((Mutating) endStep).addPropertyMutations(key, value);
         } else {

Reply via email to