Skip to content

Commit

Permalink
Fix routine_index
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Nov 6, 2023
1 parent ef85ef5 commit 6e9a300
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions postgres.cc
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
}
}
}
routine_index++;
}
routine_index++;
}
cerr << "done." << endl;

Expand Down Expand Up @@ -550,7 +550,7 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
// unnest is broken: https://github.com/MaterializeInc/materialize/issues/17979
//string q("select (select oid from mz_types where a = id) from mz_functions, lateral unnest(argument_type_ids) as a where oid = ");
if (read_state) {
for (const auto &obj : data["aggregates"][routine_index]["parameters"]) {
for (const auto &obj : data["aggregates"][aggregate_index]["parameters"]) {
proc.argtypes.push_back(oid2type[obj.get<OID>()]);
}
} else {
Expand Down Expand Up @@ -584,7 +584,6 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
}
}
}

aggregate_index++;
}
cerr << "done." << endl;
Expand Down

0 comments on commit 6e9a300

Please sign in to comment.