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

Change default datetime in query from '0000-00-00' to '1970-01-01' #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

0x8801
Copy link

@0x8801 0x8801 commented Nov 9, 2016

Recent versions of MySQL do not allow 0000-00-00 so the default Transaction database query keeps failing causing a null value on the setReceipt() function. Change to epoch which is allowed

Fixes #22

Recent versions of MySQL do not allow `0000-00-00` so the default Transaction database query keeps failing causing a `null` value on the `setReceipt()` function. Change to epoch which is allowed
Due to new messages e.g. mshwari, some transactions from were being saved
as empty records with only the default values and the message saved as a
note. This solves that problem by checking whether the parsed amount is
greater than 0 before saving. Otherwise it returns true.
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.

None yet

2 participants