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

problem when exporting field with date data type #66

Open
k1n6m4n opened this issue Jan 12, 2021 · 1 comment
Open

problem when exporting field with date data type #66

k1n6m4n opened this issue Jan 12, 2021 · 1 comment

Comments

@k1n6m4n
Copy link

k1n6m4n commented Jan 12, 2021

Hi, first of all I want to say thank you to all the contributor for this great tools.

after using this tools for a couple days, I bump into this problem, whenever I export a field with date type with value '0000-00-00' will resulted in '0001-01-01' and while our company old software which is still running vb6 encountered error with this value. (err msg : OLE DB : Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.)

is it anyway to have the exported result of date type to '0000-00-00' ?

thank you

regards
Kingman

@adriancs2
Copy link
Member

adriancs2 commented Jan 15, 2021

You may add an additional connection string option: convertzerodatetime=false;

Example:

server=127.0.0.1;user=root;pwd=abcd;database=test1;convertzerodatetime=false;

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

2 participants