Skip to content

这种写法应该很容易导致报错吧 #1

Open
@iFaceless

Description

"github.com/go-sql-driver/mysql"

比如我在项目中引用了你的包,然后不小心在外面又像下面这样导入了一次 mysql-driver

import _ "github.com/go-sql-driver/mysql"

很容易导致错误:

panic: sql: Register called twice for driver mysql

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions