mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	plugins: deprecate errwrap.Wrapf() (#11590)
* plugins/database/redshift: deprecate errwrap.Wrapf() * plugins/database/postgresql: deprecate errwrap.Wrapf() * plugins/database/mysql: deprecate errwrap.Wrapf() * plugins/database/mssql: deprecate errwrap.Wrapf() * plugins/database/mongodb: deprecate errwrap.Wrapf() * plugins/database/influxdb: deprecate errwrap.Wrapf()
This commit is contained in:
		| @@ -8,7 +8,6 @@ import ( | ||||
| 	"strings" | ||||
|  | ||||
| 	_ "github.com/denisenkom/go-mssqldb" | ||||
| 	"github.com/hashicorp/errwrap" | ||||
| 	multierror "github.com/hashicorp/go-multierror" | ||||
| 	dbplugin "github.com/hashicorp/vault/sdk/database/dbplugin/v5" | ||||
| 	"github.com/hashicorp/vault/sdk/database/helper/connutil" | ||||
| @@ -279,10 +278,10 @@ func (m *MSSQL) revokeUserDefault(ctx context.Context, username string) error { | ||||
|  | ||||
| 	// can't drop if not all database users are dropped | ||||
| 	if rows.Err() != nil { | ||||
| 		return errwrap.Wrapf("could not generate sql statements for all rows: {{err}}", rows.Err()) | ||||
| 		return fmt.Errorf("could not generate sql statements for all rows: %w", rows.Err()) | ||||
| 	} | ||||
| 	if lastStmtError != nil { | ||||
| 		return errwrap.Wrapf("could not perform all sql statements: {{err}}", lastStmtError) | ||||
| 		return fmt.Errorf("could not perform all sql statements: %w", lastStmtError) | ||||
| 	} | ||||
|  | ||||
| 	// Drop this login | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Lars Lehtonen
					Lars Lehtonen