fix missing typmod in generated sql
ie the max length of a varchar or the scale and precision of a numeric closes #66
This commit is contained in:
parent
2faedca137
commit
87553b2554
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue