!3456 dblink代码逻辑调整

Merge pull request !3456 from Carl/fix
This commit is contained in:
opengauss-bot
2023-05-16 03:09:38 +00:00
committed by Gitee

View File

@ -1486,12 +1486,13 @@ static void storeRow(storeInfo* sinfo, PGresult* res, bool first)
*/
oldcontext = MemoryContextSwitchTo(sinfo->tmpcontext);
/* Should have a single-row result if we get here */
Assert(PQntuples(res) == 1);
/* Done if empty resultset */
if (PQntuples(res) == 0)
return;
return;
/* Should have a single-row result if we get here */
Assert(PQntuples(res) == 1);
/*
* Fill cstrs with null-terminated strings of column values.
*/