Skip to content

Commit 0b00b52

Browse files
author
Tanya Gupta
committed
addressing comment
Signed-off-by: Tanya Gupta <[email protected]>
1 parent dff8674 commit 0b00b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/parser/parse_type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ typenameTypeMod(ParseState *pstate, const TypeName *typeName, Type typ)
369369
typeoid = ((Form_pg_type) GETSTRUCT(typ))->oid;
370370
typbasetype = ((Form_pg_type) GETSTRUCT(typ))->typbasetype;
371371

372-
if (dump_restore && (strcmp(dump_restore, "on") == 0) && !typmodin && typbasetype)
372+
if (dump_restore && (strcmp(dump_restore, "on") == 0) && !OidIsValid(typmodin) && OidIsValid(typbasetype))
373373
{
374374
basetypeid = getBaseType(typeoid);
375375
tup = SearchSysCache1(TYPEOID, ObjectIdGetDatum(basetypeid));

0 commit comments

Comments
 (0)