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
|
|
@ -146,7 +146,7 @@ QString PgProc::argListWithNames(bool multiline) const
|
|||
|
||||
if (!arg.isEmpty())
|
||||
arg += " ";
|
||||
arg += types->getByKey(arg_elem.type)->name;
|
||||
arg += types->getByKey(arg_elem.type)->objectName();
|
||||
|
||||
if (!arg_elem.def.isEmpty())
|
||||
arg += " DEFAULT " + arg_elem.def;
|
||||
|
|
@ -179,7 +179,7 @@ QString PgProc::argSigList(const bool forScript) const
|
|||
args += ", ";
|
||||
}
|
||||
|
||||
QString typname = types->getByKey(arg_elem.type)->name;
|
||||
QString typname = types->getByKey(arg_elem.type)->objectName();
|
||||
if (forScript)
|
||||
args += " <" + typname + ">";
|
||||
else
|
||||
|
|
@ -201,7 +201,7 @@ QString PgProc::createSql() const
|
|||
QString quoted_sig = QString("%1(%2)").arg(fullyQualifiedQuotedObjectName(), argSigList());
|
||||
|
||||
auto&& types = catalog().types();
|
||||
QString return_type = types->getByKey(rettype)->name;
|
||||
QString return_type = types->getByKey(rettype)->objectName();
|
||||
|
||||
|
||||
sql = QString("-- Function: %1\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue