作者 yangfu

修改starrocks 查询驱动

... ... @@ -2,7 +2,7 @@ package starrocks
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
mysql "github.com/go-sql-driver/mysql"
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/constant"
"gitlab.fjmaimaimai.com/allied-creation/character-library-metadata-bastion/pkg/log"
"time"
... ... @@ -12,7 +12,8 @@ var DBOfficial *sql.DB
func InitDBOfficial() error {
var err error
DBOfficial, err = sql.Open("mysql", constant.STARROCKS_MYSQL_DATA_SOURCE)
sql.Register("mysql-star", &mysql.MySQLDriver{})
DBOfficial, err = sql.Open("mysql-star", constant.STARROCKS_MYSQL_DATA_SOURCE)
if err != nil {
return err
}
... ...