This repository has been 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 has been 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
Description
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.
Activity