PgType now inherits from PgNamespaceObject and PgOwnedObject
This commit is contained in:
parent
742fd0a4d3
commit
44358d198a
10 changed files with 37 additions and 54 deletions
|
|
@ -28,7 +28,7 @@ TypeMappingResult TypeMappings::getTypeForOid(Oid oid) const
|
|||
if (m_types) {
|
||||
const PgType* type = m_types->getByKey(oid);
|
||||
if (type)
|
||||
dbtypename = type->name;
|
||||
dbtypename = type->objectName();
|
||||
}
|
||||
|
||||
return { res->second, dbtypename };
|
||||
|
|
@ -52,11 +52,11 @@ TypeMappingResult TypeMappings::getTypeForOid(Oid oid) const
|
|||
}
|
||||
return {
|
||||
QString(m_defaultContainerType).arg(type_string),
|
||||
elem_type->name + "[]"
|
||||
elem_type->objectName() + "[]"
|
||||
};
|
||||
}
|
||||
else {
|
||||
return { m_defaultStringType, type->name };
|
||||
return { m_defaultStringType, type->objectName() };
|
||||
}
|
||||
}
|
||||
// We shouldn't get here unless m_types is empty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue