gs_dump导出库的时候,创表携带using语句中出现乱码。

This commit is contained in:
lexin184383
2023-11-30 17:13:11 +08:00
committed by totaj
parent fecf851157
commit 175ba239db

View File

@ -23496,7 +23496,7 @@ static void dumpUniquePrimaryDef(PQExpBuffer buf, ConstraintInfo* coninfo, IndxI
char idxopt[posoffset + 1] = {0};
/* Write the storage mode in the condef. */
errno_t rc = memcpy_s(idxopt, posoffset + 1, usingpos, posoffset + 1);
errno_t rc = memcpy_s(idxopt, posoffset + 1, usingpos, posoffset);
securec_check_c(rc, "\0", "\0");
appendPQExpBuffer(buf, "USING %s", idxopt);
}