Skip to content

Commit da8b75a

Browse files
author
Zoran Cvetkov
committed
fix graft test
1 parent 268ada1 commit da8b75a

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
@@ -4694,6 +4694,7 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
46944694
out.push_sql(", ");
46954695
out.push_sql(CAUSALITY_REGION_COLUMN);
46964696
};
4697+
out.push_sql(", vid");
46974698

46984699
out.push_sql(")\nselect ");
46994700
for column in &self.columns {
@@ -4759,6 +4760,8 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
47594760
));
47604761
}
47614762
}
4763+
out.push_sql(", vid");
4764+
47624765
out.push_sql(" from ");
47634766
out.push_sql(self.src.qualified_name.as_str());
47644767
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)