[bugfix] repair gsql connection failed when the gsql version is incompatible with the database version
This commit is contained in:
@ -125,10 +125,14 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
if (strcmp(libpqVersionString, DEF_GS_VERSION) != 0) {
|
if (strcmp(libpqVersionString, DEF_GS_VERSION) != 0) {
|
||||||
fprintf(stderr,
|
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,
|
DEF_GS_VERSION,
|
||||||
libpqVersionString);
|
libpqVersionString);
|
||||||
|
#ifdef ENABLE_MULTIPLE_NODES
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
|
Reference in New Issue
Block a user