Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

[xorm.NewEngine] I gave wrong 'dataSourceName' but can't panic the error  #1424

Open
@conero

Description

@conero

I used xorm to connect Mysql.

// code ....
engine, err := xorm.NewEngine(vtype, dsn)
// dsn is wrong
// but never panic the error 

// I had to check use a SQL like:
md, er := engine.QueryString("select database() as `cdb`, user() as `user`")
// er =>
// `Error 1045: Access denied for user 'root'@'localhost' (using password: YES)`

// code ....

What I gonna to, please give me a hand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions