From 435c55bb1e45e736590f973762ac98e910e5c01d Mon Sep 17 00:00:00 2001 From: wangtq Date: Wed, 22 Jun 2022 15:41:37 +0800 Subject: [PATCH] don't reuse the parameter VERSION but OPENGAUSS_VERSION --- src/bin/pg_config/pg_config.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_config/pg_config.cpp b/src/bin/pg_config/pg_config.cpp index a9ad371e0..fab1b539f 100644 --- a/src/bin/pg_config/pg_config.cpp +++ b/src/bin/pg_config/pg_config.cpp @@ -292,9 +292,11 @@ static void show_version(int alls) if (alls) { printf("VERSION = "); } -#ifdef ENABLE_MULTIPLE_NODES printf("PostgreSQL 9.2.4\n"); -#else +#ifdef ENABLE_MULTIPLE_NODES + if (alls) { + printf("OPENGAUSS_VERSION = "); + } printf("openGauss 3.0.0\n"); #endif }