Skip to content

Commit

Permalink
cherry-picking fix of babel_5469
Browse files Browse the repository at this point in the history
Signed-off-by: pranav jain <[email protected]>
  • Loading branch information
pranavJ23 committed Feb 4, 2025
1 parent 5489d8e commit 652faf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contrib/babelfishpg_tsql/src/rolecmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ suser_name(PG_FUNCTION_ARGS)
server_user_id = PG_ARGISNULL(0) ? InvalidOid : PG_GETARG_OID(0);

if (server_user_id == InvalidOid)
server_user_id = GetSessionUserId();
PG_RETURN_NULL();

if (server_user_id == 0x02)
{
Expand Down
12 changes: 6 additions & 6 deletions test/JDBC/expected/sys-suser_sname-vu-verify.out
Original file line number Diff line number Diff line change
Expand Up @@ -43,46 +43,46 @@ SELECT * FROM sys_suser_sname_view_vu_prepare
GO
~~START~~
nvarchar
jdbc_user
<NULL>
~~END~~


EXEC sys_suser_sname_proc_vu_prepare
GO
~~START~~
nvarchar
jdbc_user
<NULL>
~~END~~


SELECT sys_suser_sname_func_vu_prepare()
GO
~~START~~
varchar
jdbc_user
<NULL>
~~END~~


SELECT * FROM sys_suser_name_view_vu_prepare
GO
~~START~~
nvarchar
jdbc_user
<NULL>
~~END~~


EXEC sys_suser_name_proc_vu_prepare
GO
~~START~~
nvarchar
jdbc_user
<NULL>
~~END~~


SELECT sys_suser_name_func_vu_prepare()
GO
~~START~~
varchar
jdbc_user
<NULL>
~~END~~

0 comments on commit 652faf0

Please sign in to comment.