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

Add deprecated message to NullTime #1144

Merged
merged 3 commits into from Aug 16, 2020

Conversation

shogo82148
Copy link
Contributor

Description

fixes #960

database/sql has a NullTime type now, which should be used instead.
In addition, mysql.NullTime doesn't honor the loc DSN parameter.

Checklist

  • Code compiles correctly
  • Created tests which fail without the change (if possible)
  • All tests passing
  • Extended the README / documentation, if necessary
  • Added myself / the copyright holder to the AUTHORS file

README.md Outdated

Alternatively you can use the [`NullTime`](https://godoc.org/github.com/go-sql-driver/mysql#NullTime) type as the scan destination, which works with both `time.Time` and `string` / `[]byte`.

s
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I will remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is mistake of saving the document (⌘+S).

methane
methane previously approved these changes Aug 13, 2020
@shogo82148
Copy link
Contributor Author

Thanks!

@shogo82148 shogo82148 merged commit b5b0ea5 into go-sql-driver:master Aug 16, 2020
@shogo82148 shogo82148 deleted the deprecate-mysql-null-time branch August 16, 2020 02:32
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* Add deprecated message to NullTime
* remove NullTime from README
tz70s pushed a commit to tz70s/mysql that referenced this pull request Sep 5, 2020
* Add deprecated message to NullTime
* remove NullTime from README
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

Successfully merging this pull request may close these issues.

Deprecate mysql.NullTime
3 participants