summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB00mX0r <b00mx0r@aureus.pw>2019-04-19 15:28:19 -0700
committerPeter Powell <petpow@saberuk.com>2019-04-28 00:03:30 +0100
commit2533dc10f987eedb99d780c7debd948f22705679 (patch)
tree9cf6d7eae0dfa9f651a4063f718c3bf51dc02f72
parent23033e286fdbc47525b21f257d4828da653b9b42 (diff)
Fix compatibility issues between sqloper and postgres
-rw-r--r--docs/sql/sqloper.pgsql.sql4
-rw-r--r--src/modules/m_sqloper.cpp1
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