aboutsummaryrefslogtreecommitdiff
path: root/modules/extra/pgsql.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-22 21:26:45 +0100
committerGravatar Sadie Powell2024-07-22 21:26:45 +0100
commit304ad49279362eb9d3d28468e8e84a9ab0d9f119 (patch)
tree0c2ef51b4e968f309a33b6c7975e00cb7954225a /modules/extra/pgsql.cpp
parentAdjust the build system for the new module structure. (diff)
parentFix shadowing messages in pgsql and regex_pcre2. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/extra/pgsql.cpp')
-rw-r--r--modules/extra/pgsql.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/extra/pgsql.cpp b/modules/extra/pgsql.cpp
index 5ff50c765..a2f4bfe43 100644
--- a/modules/extra/pgsql.cpp
+++ b/modules/extra/pgsql.cpp
@@ -579,17 +579,17 @@ public:
void init() override
{
- int version = PQlibVersion();
- int minor = version / 100 % 100;
- int revision = version % 100;
- if (version >= 10'00'00)
+ int pqversion = PQlibVersion();
+ int minor = pqversion / 100 % 100;
+ int revision = pqversion % 100;
+ if (pqversion >= 10'00'00)
{
// Ref: https://www.postgresql.org/docs/current/libpq-misc.html#LIBPQ-PQLIBVERSION
minor = revision;
revision = 0;
}
ServerInstance->Logs.Normal(MODNAME, "Module was compiled against libpq version {} and is running against version {}.{}.{}",
- PG_VERSION, version / 10000, minor, revision);
+ PG_VERSION, pqversion / 10000, minor, revision);
}
void ReadConfig(ConfigStatus& status) override