The global function for getting a typename from an oid now supports passing the typmod of a column.

This is used by the list of columns for a table. Works for char, varchar, text and numeric.
This commit is contained in:
eelke 2017-12-19 19:33:22 +01:00
parent 6599498556
commit c324daa75b
3 changed files with 26 additions and 5 deletions

View file

@ -133,7 +133,7 @@ QVariant ColumnTableModel::getData(const QModelIndex &index) const
s = t.name;
break;
case TypeCol:
s = getTypeDisplayString(*m_catalog, t.typid);
s = getTypeDisplayString(*m_catalog, t.typid, t.typmod);
break;
case NullCol:
s = QString::fromStdU16String(t.notnull ? u"\u2713" : u"");