Skip to content

Commit

Permalink
Allow table_am_handler and index_am_handler C function references
Browse files Browse the repository at this point in the history
We need to allow these in the update script as we try to create
an operator class later that is gonna call those functions during
upgrade process.
  • Loading branch information
svenklemm committed Jan 23, 2025
1 parent bbf183c commit d980b59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/check_updates_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def visit_CreateFunctionStmt(
lang
and lang[0].arg.sval == "c"
and code[-1].sval != "ts_update_placeholder"
and node.returnType.names[0].sval
not in ["table_am_handler", "index_am_handler"]
):
self.errors += 1
functype = "procedure" if node.is_procedure else "function"
Expand Down

0 comments on commit d980b59

Please sign in to comment.