]> granicus.if.org Git - postgresql/commitdiff
Fix bit-rotted reference to GetUserName() ...
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Sep 2002 21:13:03 +0000 (21:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Sep 2002 21:13:03 +0000 (21:13 +0000)
it's GetUserNameFromId() now.

contrib/spi/insert_username.c

index 0bedaa98aedc9fa749ca82c90000e705135c3475..9c38fdb3a6687d6a2b07ba34ed8bd29840f44d36 100644 (file)
@@ -65,7 +65,7 @@ insert_username(PG_FUNCTION_ARGS)
 
        /* create fields containing name */
        newval = DirectFunctionCall1(textin,
-                                                         CStringGetDatum(GetUserName(GetUserId())));
+                                                         CStringGetDatum(GetUserNameFromId(GetUserId())));
 
        /* construct new tuple */
        rettuple = SPI_modifytuple(rel, rettuple, 1, &attnum, &newval, NULL);