From 0f6ba4229d9cf8c332b1e29bca76cc2d464d24cc Mon Sep 17 00:00:00 2001 From: douxin Date: Tue, 27 Oct 2020 20:35:05 +0800 Subject: [PATCH] [bugfix] repair gsql connection failed when the gsql version is incompatible with the database version --- src/bin/psql/startup.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/startup.cpp b/src/bin/psql/startup.cpp index 7697cfcca..7b1df317b 100755 --- a/src/bin/psql/startup.cpp +++ b/src/bin/psql/startup.cpp @@ -125,10 +125,14 @@ int main(int argc, char* argv[]) if (strcmp(libpqVersionString, DEF_GS_VERSION) != 0) { fprintf(stderr, - "The \"libpq.so\" loaded mismatch the version of gsql, please check it.\nexpected: %s\nresult: %s\n", + "[Warning]: The \"libpq.so\" loaded mismatch the version of gsql, " + "please check it.\n" + "expected: %s\nresult: %s\n", DEF_GS_VERSION, libpqVersionString); +#ifdef ENABLE_MULTIPLE_NODES exit(EXIT_FAILURE); +#endif } if (argc > 1) {