diff --git a/pglablib/catalog/PgAttribute.cpp b/pglablib/catalog/PgAttribute.cpp index 81b3d97..471f847 100644 --- a/pglablib/catalog/PgAttribute.cpp +++ b/pglablib/catalog/PgAttribute.cpp @@ -21,8 +21,7 @@ QString PgAttribute::columnDefinition(const PgDatabaseCatalog &cat) const type_str = "BIGSERIAL"; } else { - auto&& type = cat.types()->getByKey(typid); - type_str = type->objectName(); + type_str = getTypeDisplayString(cat, typid, typmod); } QString sql = quoteIdent(name) % " " % type_str;