Skip to content

Commit cc0ecea

Browse files
author
Zoran Cvetkov
committed
renames
1 parent e8ef14d commit cc0ecea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

store/postgres/src/relational_queries.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,7 @@ impl<'a> QueryFragment<Pg> for InsertQuery<'a> {
23552355
let out = &mut out;
23562356
out.unsafe_to_cache_prepared();
23572357

2358-
let strict_vid_order = self.table.object.has_vid_seq();
2358+
let has_vid_seq = self.table.object.has_vid_seq();
23592359

23602360
// Construct a query
23612361
// insert into schema.table(column, ...)
@@ -2382,7 +2382,7 @@ impl<'a> QueryFragment<Pg> for InsertQuery<'a> {
23822382
out.push_sql(CAUSALITY_REGION_COLUMN);
23832383
};
23842384

2385-
if strict_vid_order {
2385+
if has_vid_seq {
23862386
out.push_sql(", vid");
23872387
}
23882388
out.push_sql(") values\n");
@@ -2402,7 +2402,7 @@ impl<'a> QueryFragment<Pg> for InsertQuery<'a> {
24022402
out.push_sql(", ");
24032403
out.push_bind_param::<Integer, _>(&row.causality_region)?;
24042404
};
2405-
if strict_vid_order {
2405+
if has_vid_seq {
24062406
out.push_sql(", ");
24072407
out.push_bind_param::<BigInt, _>(&row.vid)?;
24082408
}
@@ -4805,7 +4805,7 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
48054805
fn walk_ast<'b>(&'b self, mut out: AstPass<'_, 'b, Pg>) -> QueryResult<()> {
48064806
out.unsafe_to_cache_prepared();
48074807

4808-
let strict_vid_order = self.src.object.has_vid_seq();
4808+
let has_vid_seq = self.src.object.has_vid_seq();
48094809

48104810
// Construct a query
48114811
// insert into {dst}({columns})
@@ -4827,7 +4827,7 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
48274827
out.push_sql(", ");
48284828
out.push_sql(CAUSALITY_REGION_COLUMN);
48294829
};
4830-
if strict_vid_order {
4830+
if has_vid_seq {
48314831
out.push_sql(", vid");
48324832
}
48334833

@@ -4895,7 +4895,7 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
48954895
));
48964896
}
48974897
}
4898-
if strict_vid_order {
4898+
if has_vid_seq {
48994899
out.push_sql(", vid");
49004900
}
49014901

0 commit comments

Comments
 (0)