Convert name of array types to elem typoe followed by []
This commit is contained in:
parent
7fb4e1ddb9
commit
b8505ce451
3 changed files with 54 additions and 45 deletions
|
|
@ -56,7 +56,16 @@ QString getTypeDisplayString(const PgDatabaseCatalog &cat, Oid oid)
|
|||
{
|
||||
auto tc = cat.types();
|
||||
auto t = tc->getByKey(oid);
|
||||
return t.name;
|
||||
QString s;
|
||||
if (t.category == TypCategory::Array) {
|
||||
auto et = tc->getByKey(t.elem);
|
||||
s = et.name;
|
||||
s += "[]";
|
||||
}
|
||||
else {
|
||||
s = t.name;
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue