Skip to content

Commit 86b835d

Browse files
author
Zoran Cvetkov
committed
fix graft test
1 parent ecc33c4 commit 86b835d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

store/postgres/src/relational_queries.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4963,6 +4963,7 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
49634963
out.push_sql(", ");
49644964
out.push_sql(CAUSALITY_REGION_COLUMN);
49654965
};
4966+
out.push_sql(", vid");
49664967

49674968
out.push_sql(")\nselect ");
49684969
for column in &self.columns {
@@ -5028,6 +5029,8 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
50285029
));
50295030
}
50305031
}
5032+
out.push_sql(", vid");
5033+
50315034
out.push_sql(" from ");
50325035
out.push_sql(self.src.qualified_name.as_str());
50335036
out.push_sql(" where vid >= ");

store/test-store/tests/postgres/graft.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ async fn check_graft(
330330

331331
// Make our own entries for block 2
332332
shaq.set("email", "[email protected]").unwrap();
333+
shaq.set("vid", 5i64).unwrap();
333334
let op = EntityOperation::Set {
334335
key: user_type.parse_key("3").unwrap(),
335336
data: shaq,

0 commit comments

Comments
 (0)