Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/frontend/compiler_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ func (tcc *TxnCompilerContext) GetAccountId() (uint32, error) {
return tcc.execCtx.ses.GetAccountId(), nil
}

func (tcc *TxnCompilerContext) GetAccountName() string {
return tcc.execCtx.ses.GetTenantName()
}

func (tcc *TxnCompilerContext) GetContext() context.Context {
return tcc.execCtx.reqCtx
}
Expand Down
1 change: 1 addition & 0 deletions pkg/frontend/compiler_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func TestGetConfig(t *testing.T) {
require.NoError(t, err)
require.Equal(t, tt.expected, val)
}
require.True(t, len(tcc.GetAccountName()) > 0)
})
}
}
Loading
Loading