!345 [bugfix]修复当libpq.so与gsql的版本不匹配时,无法正常连接数据库

Merge pull request !345 from 勇往直前/douxin_master_gsql
This commit is contained in:
opengauss-bot
2020-10-28 16:21:55 +08:00
committed by Gitee

View File

@ -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) {