Skip to content

Commit

Permalink
Fixed bug CORE-2293 : Wrong dependent object type (RELATION) in RDB$D…
Browse files Browse the repository at this point in the history
…EPEDENCIES for VIEW's
  • Loading branch information
hvlad committed Jan 26, 2009
1 parent 1964202 commit 5a1aac3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jrd/met.epp
Expand Up @@ -4903,7 +4903,7 @@ static void store_dependencies(thread_db* tdbb,
if (!node->nod_arg[e_dep_object])
continue;

const int dpdo_type = (int) (IPTR) node->nod_arg[e_dep_object_type];
int dpdo_type = (int) (IPTR) node->nod_arg[e_dep_object_type];
jrd_rel* relation = NULL;
jrd_prc* procedure = NULL;
const Firebird::MetaName* dpdo_name = 0;
Expand Down Expand Up @@ -4940,6 +4940,10 @@ static void store_dependencies(thread_db* tdbb,
}
}

MET_scan_relation(tdbb, relation);
if (relation->rel_view_rse) {
dpdo_type = obj_view;
}
break;
case obj_procedure:
procedure = (jrd_prc*) node->nod_arg[e_dep_object];
Expand Down

0 comments on commit 5a1aac3

Please sign in to comment.