The oid column is now shown for tables that are "with oids".

This commit is contained in:
eelke 2017-12-17 19:54:23 +01:00
parent 172e2bcd1d
commit 7051ef2efc
5 changed files with 23 additions and 9 deletions

View file

@ -39,7 +39,7 @@ void TablesPage::setCatalog(std::shared_ptr<PgDatabaseCatalog> cat)
void TablesPage::on_tableListTable_currentRowChanged(const QModelIndex &current, const QModelIndex &previous)
{
if (current.row() != previous.row()) {
Oid table_oid = m_tablesModel->getTableOid(current.row());
m_columnsModel->setData(m_catalog, table_oid);
PgClass table = m_tablesModel->getTable(current.row());
m_columnsModel->setData(m_catalog, table);
}
}