mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
Add make fmt CI check (#13803)
* Add make fmt CI check * Don't suppress patch output
This commit is contained in:
@@ -216,8 +216,7 @@ func (m *MSSQL) revokeUserDefault(ctx context.Context, username string) error {
|
||||
|
||||
// Check if DB is contained
|
||||
if m.containedDB {
|
||||
revokeQuery :=
|
||||
`DECLARE @stmt nvarchar(max);
|
||||
revokeQuery := `DECLARE @stmt nvarchar(max);
|
||||
SET @stmt = 'DROP USER IF EXISTS ' + QuoteName(@username);
|
||||
EXEC(@stmt);`
|
||||
revokeStmt, err := db.PrepareContext(ctx, revokeQuery)
|
||||
@@ -232,12 +231,11 @@ func (m *MSSQL) revokeUserDefault(ctx context.Context, username string) error {
|
||||
}
|
||||
|
||||
// First disable server login
|
||||
disableQuery :=
|
||||
`DECLARE @stmt nvarchar(max);
|
||||
disableQuery := `DECLARE @stmt nvarchar(max);
|
||||
SET @stmt = 'ALTER LOGIN ' + QuoteName(@username) + ' DISABLE';
|
||||
EXEC(@stmt);`
|
||||
disableStmt, err := db.PrepareContext(ctx, disableQuery)
|
||||
if err != nil{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer disableStmt.Close()
|
||||
|
||||
Reference in New Issue
Block a user