Fix compatibility issues between sqloper and postgres

This commit is contained in:
B00mX0r 2019-04-19 15:28:19 -07:00 committed by Peter Powell
parent 23033e286f
commit 2533dc10f9
2 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,8 @@ CREATE TABLE ircd_opers (
"host" text NOT NULL, "host" text NOT NULL,
"type" text NOT NULL, "type" text NOT NULL,
"fingerprint" text, "fingerprint" text,
"autologin" boolean NOT NULL DEFAULT 0, "autologin" smallint NOT NULL DEFAULT 0,
"active" boolean NOT NULL DEFAULT 1 "active" smallint NOT NULL DEFAULT 1
); );
ALTER TABLE ONLY ircd_opers ALTER TABLE ONLY ircd_opers
ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id); ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id);

View File

@ -96,6 +96,7 @@ class OperQuery : public SQL::Query
ifo->class_blocks.assign(tblk->second->class_blocks.begin(), tblk->second->class_blocks.end()); ifo->class_blocks.assign(tblk->second->class_blocks.begin(), tblk->second->class_blocks.end());
oper_blocks[name] = ifo; oper_blocks[name] = ifo;
my_blocks.push_back(name); my_blocks.push_back(name);
row.clear();
} }
// If this was done as a result of /OPER and not a config read // If this was done as a result of /OPER and not a config read