51
51
schema_predicate.append(select->getShowSchema());
53
pthread_mutex_lock(&LOCK_open); /* Optionally lock for remove tables from open_cahe if not in use */
55
drizzled::HASH *open_cache=
58
for (uint32_t idx= 0; idx < open_cache->records; idx++ )
53
if (schema_predicate.empty())
60
table= (Table*) hash_element(open_cache, idx);
61
table_list.push_back(table);
55
schema_predicate.append(getSession().db);
64
for (table= getSession().temporary_tables; table; table= table->next)
58
if (not schema_predicate.empty())
66
if (table->getShare())
60
pthread_mutex_lock(&LOCK_open); /* Optionally lock for remove tables from open_cahe if not in use */
62
drizzled::HASH *open_cache=
65
for (uint32_t idx= 0; idx < open_cache->records; idx++ )
67
table= (Table*) hash_element(open_cache, idx);
68
68
table_list.push_back(table);
71
for (table= getSession().temporary_tables; table; table= table->next)
73
if (table->getShare())
75
table_list.push_back(table);
78
std::sort(table_list.begin(), table_list.end(), Table::compare);
71
std::sort(table_list.begin(), table_list.end(), Table::compare);
74
82
ShowTableStatus::Generator::~Generator()