From 2533dc10f987eedb99d780c7debd948f22705679 Mon Sep 17 00:00:00 2001 From: B00mX0r Date: Fri, 19 Apr 2019 15:28:19 -0700 Subject: Fix compatibility issues between sqloper and postgres --- docs/sql/sqloper.pgsql.sql | 4 ++-- src/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 index 0b3cdb8dc..954bc84fa 100644 --- 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 index da538caef..8ba8e3103 100644 --- 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 -- cgit v1.2.3