Skip to content

Commit c0dbd7c

Browse files
Fix grant_procedure_usage macro to correctly access procedure names from query results
1 parent 85739dd commit c0dbd7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

macros/grants/grant_procedure_usage.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
{% if execute and proc_results %}
5151
{% for row in proc_results %}
52-
{% set full_proc_name = row.routine_name %}
52+
{% set full_proc_name = row[3] %}
5353
{% do procedures.append(full_proc_name) %}
5454
{% endfor %}
5555
{% endif %}

0 commit comments

Comments
 (0)