changes made to be similar to mysql
moar
fixed logging
Merge pull request #1 from measure/fixup_to_match_mysql

Fixup to match mysql