Only 4.1 and later supports setting sql_mode on a per session basis
Merge pull request #49 from xertres/sql_mode_problem

Only 4.1 and later supports setting sql_mode on a per session basis