提交 ea59fd52 编写于 作者: A Ashwin Agrawal

Fix warnings flagged by gcc.

上级 8e6f36ba
......@@ -109,7 +109,7 @@ url_file_fread(void *ptr, size_t size, URL_FILE *file, CopyState pstate)
if (pstate->cdbsreh)
snprintf(pstate->cdbsreh->filename,
sizeof pstate->cdbsreh->filename,
sizeof(pstate->cdbsreh->filename),
"%s [%s]", ffile->common.url, fo.fname);
}
return want;
......
......@@ -70,7 +70,7 @@ CreateSchemaCommand(CreateSchemaStmt *stmt, const char *queryString)
{
Assert(Gp_role == GP_ROLE_EXECUTE);
Assert(stmt->schemaname == InvalidOid);
Assert(stmt->schemaname == NULL);
Assert(stmt->authid == NULL);
Assert(stmt->schemaElts == NIL);
......
......@@ -687,7 +687,7 @@ pg_total_relation_size(PG_FUNCTION_ARGS)
* someone else might drop the table. It's better to return NULL for
* already-dropped tables than throw an error and abort the whole query.
*/
if (!OidIsValid(get_rel_name(relOid)))
if (get_rel_name(relOid) == NULL)
PG_RETURN_NULL();
size = calculate_total_relation_size(relOid);
......
......@@ -76,7 +76,7 @@ typedef struct CdbSreh
bool is_limit_in_rows; /* ROWS = true, PERCENT = false */
MemoryContext badrowcontext; /* per-badrow evaluation context */
char filename[256]; /* "uri [filename]" */
char filename[MAXPGPATH]; /* "uri [filename]" */
bool log_to_file; /* or log into file? */
Oid relid; /* parent relation id */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册