You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: drivers/pg/statements.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ const (
12
12
// Azure post-processing. This was done because Azure post will submit the same creation request hundreds of
13
13
// times for the same edge. In PostgreSQL this results in a constraint violation. For now this is best-effort
14
14
// until Azure post-processing can be refactored.
15
-
createEdgeBatchStatement=`insert into edge as e (graph_id, start_id, end_id, kind_id, properties) select $1, unnest($2::int8[]), unnest($3::int8[]), unnest($4::int2[]), unnest($5::jsonb[]) on conflict (graph_id, start_id, end_id, kind_id) do update set properties = e.properties || excluded.properties;`
15
+
createEdgeBatchStatement=`insert into edge as e (graph_id, start_id, end_id, kind_id, properties) select $1, unnest($2::int8[]), unnest($3::int8[]), unnest($4::int2[]), unnest($5::jsonb[]) on conflict (start_id, end_id, kind_id, graph_id) do update set properties = e.properties || excluded.properties;`
16
16
deleteEdgeWithIDStatement=`delete from edge as e where e.id = any($1)`
17
17
18
18
edgePropertySetOnlyStatement=`update edge set properties = properties || $1::jsonb where edge.id = $2`
0 commit comments