Several fixes for compilation with gcc (doesn't link)
This commit is contained in:
parent
a2f39692a2
commit
dd9906dbd8
20 changed files with 379 additions and 262 deletions
|
|
@ -26,16 +26,16 @@ void PgAuthIdContainer::load(const Pgsql::Result &res)
|
|||
bool with_rls = (m_catalogue->serverVersion() >= 90500);
|
||||
for (auto row : res) {
|
||||
PgAuthId v;
|
||||
v.oid = row.get(0); // InvalidOid;
|
||||
v.name = row.get(1);
|
||||
v.super = row.get(2);
|
||||
v.inherit = row.get(3);
|
||||
v.createRole = row.get(4);
|
||||
v.createDB = row.get(5);
|
||||
v.canlogin = row.get(6);
|
||||
v.replication = row.get(7);
|
||||
v.connLimit = row.get(8);
|
||||
v.validUntil = row.get(9);
|
||||
v.oid << row.get(0); // InvalidOid;
|
||||
v.name << row.get(1);
|
||||
v.super << row.get(2);
|
||||
v.inherit << row.get(3);
|
||||
v.createRole << row.get(4);
|
||||
v.createDB << row.get(5);
|
||||
v.canlogin << row.get(6);
|
||||
v.replication << row.get(7);
|
||||
v.connLimit << row.get(8);
|
||||
v.validUntil << row.get(9);
|
||||
v.bypassRls = with_rls ? (bool)row.get(10) : false;
|
||||
// QDateTime
|
||||
m_container.push_back(v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue