CraftFire/CraftCommons — pull request #4 by Wolf480pl (2012-07-11 13:12:35+00:00)
Title: Made DataField more intelligent.

I'm not sure if it's useful. I'm also affraid i'm complicating it too much.
Let me know if I can make anything simpler.
Feel free to reject if you find it useless.
Tried to prevent RuntimeException-s in database-related functions and extend compatibility (when php script author changes field type).
I've done some tests with database. Logs here:
DbTest MySQL: http://pastebin.com/39n6HFBh
DbTest H2: http://pastebin.com/6v0GjW64