inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 2533dc10f987eedb99d780c7debd948f22705679
parent 23033e286fdbc47525b21f257d4828da653b9b42
Author: B00mX0r <b00mx0r@aureus.pw>
Date:   Fri, 19 Apr 2019 15:28:19 -0700

Fix compatibility issues between sqloper and postgres

Diffstat:
Mdocs/sql/sqloper.pgsql.sql | 4++--
Msrc/modules/m_sqloper.cpp | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/docs/sql/sqloper.pgsql.sql b/docs/sql/sqloper.pgsql.sql @@ -6,8 +6,8 @@ CREATE TABLE ircd_opers ( "host" text NOT NULL, "type" text NOT NULL, "fingerprint" text, - "autologin" boolean NOT NULL DEFAULT 0, - "active" boolean NOT NULL DEFAULT 1 + "autologin" smallint NOT NULL DEFAULT 0, + "active" smallint NOT NULL DEFAULT 1 ); ALTER TABLE ONLY ircd_opers ADD CONSTRAINT ircd_opers_pkey PRIMARY KEY (id); diff --git a/src/modules/m_sqloper.cpp b/src/modules/m_sqloper.cpp @@ -96,6 +96,7 @@ class OperQuery : public SQL::Query ifo->class_blocks.assign(tblk->second->class_blocks.begin(), tblk->second->class_blocks.end()); oper_blocks[name] = ifo; my_blocks.push_back(name); + row.clear(); } // If this was done as a result of /OPER and not a config read