Don't read protransform, we are not using it and version 12 doesn't have it.

This commit is contained in:
eelke 2019-08-10 18:10:19 +02:00
parent 2ceea4b577
commit 86cdcbe06a
2 changed files with 2 additions and 3 deletions

View file

@ -59,7 +59,6 @@ public:
float cost = 0.f; // float4 float cost = 0.f; // float4
float rows = 0.f; // float4 float rows = 0.f; // float4
Oid variadic = InvalidOid; // oid Oid variadic = InvalidOid; // oid
QString transform; // regproc
ProcKind kind = ProcKind::Function; // >= 11 ProcKind kind = ProcKind::Function; // >= 11
bool secdef = false; // bool bool secdef = false; // bool
bool leakproof = false; // bool bool leakproof = false; // bool

View file

@ -9,7 +9,7 @@ std::string PgProcContainer::getLoadQuery() const
{ {
std::string column_list = std::string column_list =
"oid,proname,pronamespace,proowner,prolang,procost,prorows," "oid,proname,pronamespace,proowner,prolang,procost,prorows,"
"provariadic,protransform,prosecdef,proleakproof," "provariadic,prosecdef,proleakproof,"
"proisstrict,proretset,provolatile,pronargs,pronargdefaults,prorettype," "proisstrict,proretset,provolatile,pronargs,pronargdefaults,prorettype,"
"proargtypes,proallargtypes,proargmodes,proargnames,proargdefaults," "proargtypes,proallargtypes,proargmodes,proargnames,proargdefaults,"
"prosrc,probin,proconfig,proacl"; "prosrc,probin,proconfig,proacl";
@ -38,7 +38,7 @@ PgProc PgProcContainer::loadElem(const Pgsql::Row &row)
PgProc v(m_catalog, oid, name, namespace_oid); PgProc v(m_catalog, oid, name, namespace_oid);
v.setOwnerOid(owner_oid); v.setOwnerOid(owner_oid);
col >> v.lang >> v.cost >> v.rows col >> v.lang >> v.cost >> v.rows
>> v.variadic >> v.transform >> v.secdef >> v.leakproof >> v.variadic >> v.secdef >> v.leakproof
>> v.isstrict >> v.retset >> v.provolatile >> v.nargs >> v.nargdefaults >> v.isstrict >> v.retset >> v.provolatile >> v.nargs >> v.nargdefaults
>> v.rettype; >> v.rettype;