Skip to content

Commit

Permalink
Use AddSignature
Browse files Browse the repository at this point in the history
  • Loading branch information
Matts966 committed Mar 27, 2022
1 parent 9a86d38 commit 03935f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions alphasql/alphacheck.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ absl::Status check(const std::string &sql, const ASTStatement *statement,
std::cout
<< "Create Procedure Statement analyzed, adding function to catalog..."
<< std::endl;
std::string proc_name =
absl::StrJoin(create_procedure_stmt->name_path(), ".");
Procedure *proc = new Procedure(create_procedure_stmt->name_path(), create_procedure_stmt->signature());
Function *function = new Function("", "group", Function::SCALAR);
function->AddSignature(create_procedure_stmt->signature());
Procedure *proc = new Procedure(create_procedure_stmt->name_path(), function->signature());
catalog->AddOwnedProcedure(proc);
// TODO: TEMP PROCEDURE Support?
break;
Expand Down

0 comments on commit 03935f1

Please sign in to comment.