!4781 处理issue:gsql不同命令对MySQL语句兼容性不同
Merge pull request !4781 from lukeman/master
This commit is contained in:
@ -368,6 +368,14 @@ int MainLoop(FILE* source, char* querystring)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Initialize current database compatibility */
|
||||
PGresult* res = PQexec(pset.db, "show sql_compatibility");
|
||||
if (res != NULL && PQresultStatus(res) == PGRES_TUPLES_OK) {
|
||||
is_b_format = strcmp (PQgetvalue(res, 0, 0), "B") == 0;
|
||||
}
|
||||
PQclear(res);
|
||||
res = NULL;
|
||||
|
||||
/* main loop to get queries and execute them */
|
||||
while (successResult == EXIT_SUCCESS) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user