We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var r sql.NullTime rows.Scan(&r)
ts := r.(*sql.NullTime) if ts.Valid { last := &ts.Time }
last 时间不是数据点的时间戳,database的时间精度为 us
The text was updated successfully, but these errors were encountered:
请提供完整的可以复现问题的代码和用于示例问题的建库建表语句
Sorry, something went wrong.
对timestamp类型的列进行Scan就会出现
No branches or pull requests
var r sql.NullTime
rows.Scan(&r)
ts := r.(*sql.NullTime)
if ts.Valid {
last := &ts.Time
}
last 时间不是数据点的时间戳,database的时间精度为 us
The text was updated successfully, but these errors were encountered: