diff options
| author | 2021-03-30 20:24:41 +0100 | |
|---|---|---|
| committer | 2021-03-30 20:24:41 +0100 | |
| commit | 03058a043ac50ec985b08e374e6e116774a5b970 (patch) | |
| tree | 0294b4a06d21ca6b49a03671c42280454dd1a59d /src/modules/extra/m_pgsql.cpp | |
| parent | Stop installing inspircd-genssl and delete the now useless manpage. (diff) | |
| download | inspircd++-03058a043ac50ec985b08e374e6e116774a5b970.tar.gz inspircd++-03058a043ac50ec985b08e374e6e116774a5b970.tar.bz2 inspircd++-03058a043ac50ec985b08e374e6e116774a5b970.zip | |
Convert SQL::Field to be a typedef of optional<string>.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 0722ad9ae..522ca205d 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -159,9 +159,9 @@ class PgSQLresult : public SQL::Result { char* v = PQgetvalue(res, row, column); if (!v || PQgetisnull(res, row, column)) - return SQL::Field(); + return std::nullopt; - return SQL::Field(std::string(v, PQgetlength(res, row, column))); + return std::string(v, PQgetlength(res, row, column)); } bool GetRow(SQL::Row& result) override |
