File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ All parameters (such as access data) can be specified both on the command line a
77
77
Msg ("config variable cveDatabase.dataSourceName is not set" )
78
78
return
79
79
}
80
- db , err = sqlx .Open (viper .GetString ("cveDatabase.driverName" ), viper .GetString ("cveDatabase.dataSourceName" ))
80
+ db , err = sqlx .Connect (viper .GetString ("cveDatabase.driverName" ), viper .GetString ("cveDatabase.dataSourceName" ))
81
81
if err != nil {
82
82
log .Error ().
83
83
AnErr ("Error" , err ).
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ All parameters (such as access data) can be specified both on the command line a
64
64
Msg ("config variable cveDatabase.dataSourceName is not set" )
65
65
return
66
66
}
67
- db , err = sqlx .Open (viper .GetString ("cveDatabase.driverName" ), viper .GetString ("cveDatabase.dataSourceName" ))
67
+ db , err = sqlx .Connect (viper .GetString ("cveDatabase.driverName" ), viper .GetString ("cveDatabase.dataSourceName" ))
68
68
if err != nil {
69
69
log .Error ().
70
70
AnErr ("Error" , err ).
You can’t perform that action at this time.
0 commit comments