diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-23 14:32:42 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-12-23 14:32:42 +0200 |
| commit | 3f8d4b465d0a371f9c68912b53cea140461ef0b7 (patch) | |
| tree | 8dccfa78bfb36397cd099a9ebdfab3e4448aa501 /src/server/db_controller.py | |
| parent | b239959ede9581bc7d7f3486c8e90c1457e96ab5 (diff) | |
follow n,m convention on cypher queries
Diffstat (limited to 'src/server/db_controller.py')
| -rw-r--r-- | src/server/db_controller.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/db_controller.py b/src/server/db_controller.py index a0641544..ebb197da 100644 --- a/src/server/db_controller.py +++ b/src/server/db_controller.py @@ -220,15 +220,15 @@ class DBO_attr_diff_commit(DB_op): # NONGOALS: doing this on the client. # Should assert the following returns 1 - # match a-[l:new_label]->b return count(l) + # match n-[l:new_label]->m return count(l) # Not doing so to avoid roundtrip - the following doesn't require knowing # the replaced label. - q_create_new = ["match a-[l_old {id: {id}}]->b", - "create a-[l_new:%s]->b set l_new=l_old" % neo4j_util.quote__backtick(new_label), + q_create_new = ["match n-[l_old {id: {id}}]->m", + "create n-[l_new:%s]->m set l_new=l_old" % neo4j_util.quote__backtick(new_label), "return l_new.id, {id: l_new.id, name: type(l_new)}", ] - q_delete_old = ["match a-[l_old {id: {id}}]->b", + q_delete_old = ["match n-[l_old {id: {id}}]->m", "where type(l_old)<>'%s' delete l_old" % new_label, ] q_param_set = {'id': id_attr} |
