作者 yangfu

修改starrocks 查询驱动

... ... @@ -2,7 +2,6 @@ package starrocks
import (
"database/sql"
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,8 +11,8 @@ var DBOfficial *sql.DB
func InitDBOfficial() error {
var err error
sql.Register("mysql-star", &mysql.MySQLDriver{})
DBOfficial, err = sql.Open("mysql-star", constant.STARROCKS_MYSQL_DATA_SOURCE)
//sql.Register("mysql-star", &mysql.MySQLDriver{})
DBOfficial, err = sql.Open("mysql", constant.STARROCKS_MYSQL_DATA_SOURCE)
if err != nil {
return err
}
... ...