mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Remove various unnecessary (char *) casts
Remove a number of (char *) casts that are unnecessary. Or in some cases, rewrite the code to make the purpose of the cast clearer. Reviewed-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/fd1fcedb-3492-4fc8-9e3e-74b97f2db6c7%40eisentraut.org
This commit is contained in:
@ -5660,13 +5660,13 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid)
|
||||
attname = PQgetvalue(res, i, 1);
|
||||
typename = PQgetvalue(res, i, 2);
|
||||
attnotnull = PQgetvalue(res, i, 3);
|
||||
attdefault = PQgetisnull(res, i, 4) ? (char *) NULL :
|
||||
attdefault = PQgetisnull(res, i, 4) ? NULL :
|
||||
PQgetvalue(res, i, 4);
|
||||
attgenerated = PQgetisnull(res, i, 5) ? (char *) NULL :
|
||||
attgenerated = PQgetisnull(res, i, 5) ? NULL :
|
||||
PQgetvalue(res, i, 5);
|
||||
collname = PQgetisnull(res, i, 6) ? (char *) NULL :
|
||||
collname = PQgetisnull(res, i, 6) ? NULL :
|
||||
PQgetvalue(res, i, 6);
|
||||
collnamespace = PQgetisnull(res, i, 7) ? (char *) NULL :
|
||||
collnamespace = PQgetisnull(res, i, 7) ? NULL :
|
||||
PQgetvalue(res, i, 7);
|
||||
|
||||
if (first_item)
|
||||
|
Reference in New Issue
Block a user