private void dropAllDeclaredGlobalTempTables() throws StandardException {
if (allDeclaredGlobalTempTables == null)
return;
DependencyManager dm = getDataDictionary().getDependencyManager();
StandardException topLevelStandardException = null;
//collect all the exceptions we might receive while dropping the temporary tables and throw them as one chained exception at the end.
for (int i = 0; i < allDeclaredGlobalTempTables.size(); i++) {
try {
TempTableInfo tempTableInfo = (TempTableInfo)allDeclaredGlobalTempTables.get(i);