Skip to content

Commit 6368e37

Browse files
author
anju15bharti
committed
Rename effective_relname variable
1 parent 0ebb3e6 commit 6368e37

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/backend/commands/tablecmds.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
797797
LOCKMODE parentLockmode;
798798
Oid accessMethodId = InvalidOid;
799799
ObjectAddress tsql_tabletype_address;
800-
const char *effective_relname;
800+
const char *enr_relname;
801801

802802
/*
803803
* Truncate relname to appropriate length (probably a waste of time, as
@@ -813,9 +813,9 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
813813
if (sql_dialect == SQL_DIALECT_TSQL &&
814814
stmt->relation->relpersistence == RELPERSISTENCE_TEMP &&
815815
stmt->relation->relname[0] == '#')
816-
effective_relname = stmt->relation->relname;
816+
enr_relname = stmt->relation->relname;
817817
else
818-
effective_relname = relname;
818+
enr_relname = relname;
819819

820820
/*
821821
* Check consistency of arguments
@@ -1091,7 +1091,7 @@ DefineRelation(CreateStmt *stmt, char relkind, Oid ownerId,
10911091
* passed in for immediate handling --- since they don't need parsing,
10921092
* they can be stored immediately.
10931093
*/
1094-
relationId = heap_create_with_catalog(effective_relname,
1094+
relationId = heap_create_with_catalog(enr_relname,
10951095
namespaceId,
10961096
tablespaceId,
10971097
InvalidOid,

0 commit comments

Comments
 (0)