Skip to content

Commit fb2d95f

Browse files
committed
Failed
1 parent 66aeee2 commit fb2d95f

File tree

4 files changed

+279
-276
lines changed

4 files changed

+279
-276
lines changed

regress/sql/cypher_create.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ EXPLAIN ANALYZE MATCH ()-[]->() RETURN 1;
5959

6060
MATCH ()-[]->() RETURN 1;
6161

62+
MATCH ()<-[]-() RETURN 1;
63+
6264
SELECT * FROM cypher_create._ag_label_vertex;
6365

6466
SELECT * FROM cypher_create._adj__adj__ag_label_vertex;

src/backend/access/vertex_heap/vertex_heapam_handler.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ TableScanDesc vertex_scan_begin(Relation relation, Snapshot snapshot, int nkeys,
127127
vertex_desc->desc = palloc(sizeof (TableScanDesc *) * vertex_desc->ndesc);
128128
vertex_desc->isIndex = palloc(sizeof (bool) * vertex_desc->ndesc);
129129

130-
List *indexoidlist = RelationGetIndexList(relation);
130+
/*List *indexoidlist = RelationGetIndexList(relation);
131131
if(list_length(indexoidlist) == 1) {
132132
Oid idx = linitial_oid(indexoidlist);
133133
@@ -140,13 +140,13 @@ TableScanDesc vertex_scan_begin(Relation relation, Snapshot snapshot, int nkeys,
140140
141141
vertex_desc->desc[0] = desc;
142142
vertex_desc->isIndex[0] = true;
143-
} else {
143+
} else {*/
144144

145145
TableScanDesc *desc = tableam->scan_begin(rel, snapshot, nkeys, key, parallel_scan, flags);
146146

147147
vertex_desc->desc[0] = desc;
148148
vertex_desc->isIndex[0] = false;
149-
}
149+
//}
150150
return vertex_desc;
151151
}
152152

@@ -180,7 +180,7 @@ bool vertex_scan_getnextslot(TableScanDesc sscan, ScanDirection direction,
180180
VertexScanDescData *vertex_desc = sscan;
181181

182182
TableAmRoutine *tableam = GetHeapamTableAmRoutine();
183-
if (vertex_desc->desc[0])
183+
if (!vertex_desc->desc[0])
184184
return false;
185185
if (vertex_desc->isIndex[0])
186186
return index_getnext_slot(vertex_desc->desc[0], direction, slot);

0 commit comments

Comments
 (0)