Fixes #2560 - View is not fully qualified in Trigger definition.

This commit is contained in:
Murtuza Zabuawala 2017-08-25 17:45:19 +05:30 committed by Ashesh Vashi
parent f711336a6b
commit d3babd78aa

View File

@ -901,6 +901,7 @@ class ViewNode(PGChildNodeView, VacuumSettings):
# data.table and not data.relname so compatibility add new key as
# table in res_rows.
res_rows['table'] = res_rows['relname']
res_rows['schema'] = self.view_schema
# Get trigger function with its schema name
SQL = render_template("/".join([self.trigger_temp_path,
@ -999,6 +1000,7 @@ class ViewNode(PGChildNodeView, VacuumSettings):
# merging formated result with main result again
result.update(frmtd_reslt)
self.view_schema = result.get('schema')
# Fetch all privileges for view
SQL = render_template("/".join(