osalvador / tePLSQL

PL/SQL Template engine
http://osalvador.github.io/tePLSQL/
MIT License
65 stars 18 forks source link

Include template from schema does not work #10

Closed PhilippSalvisberg closed 8 years ago

PhilippSalvisberg commented 8 years ago

Hello Oscar,

I started working on the oddgen project. The goal is to support several template languages, one of them is tePLSQL.

I've tried to include a template using <%@ include(templ, my_package, package_body, demo) %>. This was not working for several reasons:

  1. There is a typo in tePLSQL.pkb on line 532 (l_object_type instead of l_schema).
  2. dbms_metadata.get_ddl fails when called from another user, because dbms_metadata requires the SELECT_CATALOG_ROLE which is not visible in a definer rights package.

The first problem is easy to fix ;-). For the second one I see the following options:

Thanks.

Best Regards, Philipp