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:
parent
6599498556
commit
c324daa75b
3 changed files with 26 additions and 5 deletions
|
|
@ -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"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue