{% macro grant_select() %}
{% set sql %}
grant select on orders to psofa
{% endset %}
{% do run_query(sql) %}
{% do log("Privileges granted", info=True) %}
{% endmacro %}
This macro does not work:
{% macro grant_select() %}
{% set sql %}
grant select on orders to psofa;
grant select on orders to psofa;
{% endset %}
{% do run_query(sql) %}
{% do log("Privileges granted", info=True) %}
{% endmacro %}
and gives the following error:
Oracle error: ORA-00933: SQL command not properly ended
Rolling back transaction.
Encountered an error while running operation: Database Error
ORA-00933: SQL command not properly ended
Description
This macro works:
This macro does not work:
and gives the following error: