mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-11-03 20:17:59 +00:00 
			
		
		
		
	Fix compilation of MySQL & Redshift plugins (#10640)
This commit is contained in:
		@@ -6,6 +6,7 @@ import (
 | 
			
		||||
 | 
			
		||||
	"github.com/hashicorp/vault/plugins/database/mysql"
 | 
			
		||||
	dbplugin "github.com/hashicorp/vault/sdk/database/dbplugin/v5"
 | 
			
		||||
	"github.com/hashicorp/vault/sdk/database/helper/credsutil"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func main() {
 | 
			
		||||
@@ -19,7 +20,7 @@ func main() {
 | 
			
		||||
// Run instantiates a MySQL object, and runs the RPC server for the plugin
 | 
			
		||||
func Run() error {
 | 
			
		||||
	var f func() (interface{}, error)
 | 
			
		||||
	f = mysql.New(true)
 | 
			
		||||
	f = mysql.New(credsutil.NoneLength, mysql.LegacyMetadataLen, mysql.LegacyUsernameLen)
 | 
			
		||||
	dbType, err := f()
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return err
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user