Make it recognize not null constraints and set type to Unknown when the value is not recognized.
Note column not null constraints where not stored in pg_constraint before postgresl 18
This commit is contained in:
parent
cf7c0699fe
commit
c1a5ac1aad
4 changed files with 24 additions and 2 deletions
|
|
@ -525,7 +525,8 @@ void CrudModel::initializeColumnList()
|
|||
{
|
||||
columnList.clear();
|
||||
columnList.reserve(m_roData->cols());
|
||||
auto columns = m_database->catalog()->attributes()->getColumnsForRelation(m_table->oid());
|
||||
auto atts = m_database->catalog()->attributes();
|
||||
auto columns = atts->getColumnsForRelation(m_table->oid());
|
||||
for (int col = 0; col < m_roData->cols(); ++col)
|
||||
{
|
||||
int attnum = m_roData->ftableCol(col);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue