Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"[scanner]: empty result" #126

Open
wumingzhidewu opened this issue Apr 13, 2022 · 4 comments
Open

"[scanner]: empty result" #126

wumingzhidewu opened this issue Apr 13, 2022 · 4 comments

Comments

@wumingzhidewu
Copy link

"[scanner]: empty result"
没扫描出结果怎么也报错?没查出数据不是算正常么

@caibirdme
Copy link
Contributor

参考go的标准库: ErrNoRows
标准库定义没有Rows也算是一个错误

@NoGeniusNoStupid
Copy link

定义了这样一个errors
var ErrNoRows = errors.New("[scanner]: empty result")
为什么不能进入
if err == tools.ErrNoRows {

}

@NoGeniusNoStupid
Copy link

估计本质上不是同一个err,但是这类情况通常要如何写

@NoGeniusNoStupid
Copy link

懂了,scanner.ErrEmptyResult,别回了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants