mysql icon indicating copy to clipboard operation
mysql copied to clipboard

Fixed parseTime and DATE #881 issue

Open SMahdiFaghih opened this issue 5 years ago • 3 comments

Description

add format so that when the target is DATE, it won't change into DATETIME

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

SMahdiFaghih avatar Jan 23 '21 15:01 SMahdiFaghih

I don't like this. It makes unnecessary conversion and allocation for all other use cases.

I think #881 is a limitation of the current database/sql design. Please don't try to fix it only in the driver side.

methane avatar Jan 24 '21 03:01 methane

Will there be a good solution in a future version for #881 ?

howoii avatar Aug 23 '21 03:08 howoii

Will there be a good solution in a future version for #881 ?

If you want to use DATE or TIME type, do not use parseTime=true at all. You can get string form and parse it manually.

methane avatar Aug 23 '21 05:08 methane