Pass object type to NATableDB:removeNATable This change fixes a bug which can happen when indexes or sequence generators are dropped and, due to NATable::objectUID_ not being initialize, the NATableDB:removeNATable method must lookup the object UID from metadata. Before this change, the code assumed anything looked up was a base table. Now the object type is passed to NATableDB:removeNATable.
Lookup object UID for Sequence generator The NATable object representing a Sequence generator sometimes has an object UID of 0 at the time privileges are checked, resulting in failure to locate the object and denial of access. This change looks up the UID if the corresponding NATable member variable is 0.