Skip to content

Commit 8d7904f

Browse files
committed
Fix bit-rotted reference to GetUserName() ...
it's GetUserNameFromId() now.
1 parent bed4f65 commit 8d7904f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/spi/insert_username.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ insert_username(PG_FUNCTION_ARGS)
6565

6666
/* create fields containing name */
6767
newval = DirectFunctionCall1(textin,
68-
CStringGetDatum(GetUserName(GetUserId())));
68+
CStringGetDatum(GetUserNameFromId(GetUserId())));
6969

7070
/* construct new tuple */
7171
rettuple = SPI_modifytuple(rel, rettuple, 1, &attnum, &newval, NULL);

0 commit comments

Comments
 (0)