Skip to content

Commit

Permalink
Use pstrdup
Browse files Browse the repository at this point in the history
  • Loading branch information
lohia-shalini committed Nov 17, 2023
1 parent 762b4b9 commit bf3844d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/babelfishpg_tsql/src/tsqlIface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5529,7 +5529,7 @@ makeGrantdbStatement(TSqlParser::Security_statementContext *ctx)
}
if (prin->PUBLIC())
{
char *grantee_name = (char *)"public";
char *grantee_name = pstrdup("public");//(char *)"public";
grantee_list = lappend(grantee_list, grantee_name);
}
}
Expand Down Expand Up @@ -5562,7 +5562,7 @@ makeGrantdbStatement(TSqlParser::Security_statementContext *ctx)
}
if (prin->PUBLIC())
{
char *grantee_name = (char *)"public";
char *grantee_name = pstrdup("public");
grantee_list = lappend(grantee_list, grantee_name);
}
}
Expand Down Expand Up @@ -5597,7 +5597,7 @@ makeGrantdbStatement(TSqlParser::Security_statementContext *ctx)
}
if (prin->PUBLIC())
{
char *grantee_name = (char *)"public";
char *grantee_name = pstrdup("public");
grantee_list = lappend(grantee_list, grantee_name);
}
}
Expand Down Expand Up @@ -5654,7 +5654,7 @@ makeGrantdbStatement(TSqlParser::Security_statementContext *ctx)
}
if (prin->PUBLIC())
{
char *grantee_name = (char *)"public";
char *grantee_name = pstrdup("public");
grantee_list = lappend(grantee_list, grantee_name);
}
}
Expand Down

0 comments on commit bf3844d

Please sign in to comment.