Added the list of installed language to the catalog. The ProcTableModel now returns the owner name and language name instead of the oids.
This commit is contained in:
parent
c0a11f9b3b
commit
f692569d27
11 changed files with 118 additions and 18 deletions
22
pglablib/catalog/PgLanguageContainer.cpp
Normal file
22
pglablib/catalog/PgLanguageContainer.cpp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#include "PgLanguageContainer.h"
|
||||
#include "Pgsql_Connection.h"
|
||||
#include "Pgsql_Col.h"
|
||||
|
||||
std::string PgLanguageContainer::getLoadQuery() const
|
||||
{
|
||||
return
|
||||
"SELECT oid, lanname, lanowner, lanispl, lanpltrusted, lanplcallfoid, laninline, lanvalidator, lanacl \n"
|
||||
" FROM pg_language";
|
||||
}
|
||||
|
||||
PgLanguage PgLanguageContainer::loadElem(const Pgsql::Row &row)
|
||||
{
|
||||
Pgsql::Col col(row);
|
||||
Oid lan_oid = col.nextValue();
|
||||
QString name = col.nextValue();
|
||||
Oid owner = col.nextValue();
|
||||
PgLanguage v(m_catalog, lan_oid, name);
|
||||
col >> v.ispl >> v.pltrusted >> v.plcallfoid >> v.inline_ >> v.validator >> v.acl;
|
||||
v.setOwnerOid(m_catalog, owner);
|
||||
return v;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue