atk4/atk4 — pull request #118 by DarkSide666 (2012-10-08 23:17:31+00:00)
Title: Patch 21

Important patch. Model_Table saves empty string values as "" and not as NULL.
In most of the cases it's OK, but problems starts when you try to save empty DATE or DATETIME values.
Then MySQL saves them as some default past date (1970-01-01 in my case on Windows).

This patch fixes this problem and I guess it can't do any bad. I'm especially checking for "0" values which should be stored as 0 and not NULL.

Also a small fix in comments in Field class :)