Skip to content

Commit

Permalink
check if poi is fine to be generated by us
Browse files Browse the repository at this point in the history
  • Loading branch information
zorancv committed Jan 13, 2025
1 parent 714c931 commit f89d909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion store/postgres/src/relational/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Table {
Ok(cols)
}

let vid_type = if self.object.is_poi() || !self.object.is_object_type() {
let vid_type = if !self.object.is_object_type() {
"bigserial"
} else {
"bigint"
Expand Down
6 changes: 4 additions & 2 deletions store/postgres/src/relational_queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2541,7 +2541,8 @@ impl<'a> QueryFragment<Pg> for InsertQuery<'a> {
let out = &mut out;
out.unsafe_to_cache_prepared();

let not_poi = !self.table.object.is_poi();
// let not_poi = !self.table.object.is_poi();
let not_poi = true;

// Construct a query
// insert into schema.table(column, ...)
Expand Down Expand Up @@ -5089,7 +5090,8 @@ impl<'a> QueryFragment<Pg> for CopyEntityBatchQuery<'a> {
fn walk_ast<'b>(&'b self, mut out: AstPass<'_, 'b, Pg>) -> QueryResult<()> {
out.unsafe_to_cache_prepared();

let not_poi = !self.dst.object.is_poi();
// let not_poi = !self.dst.object.is_poi();
let not_poi = true;

// Construct a query
// insert into {dst}({columns})
Expand Down

0 comments on commit f89d909

Please sign in to comment.