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 a613834 commit 8bed094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/check_updates_ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ 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 8bed094

Please sign in to comment.