Switches the SQL mode for MySQL servers early in Drupal's boostrap process. Created as a quick way to check compatibility with PostgreSQL queries without having to actually connect to a different database server.
This uses MySQL's SET SESSION, but it really needs SET GLOBAL to keep the variable through the entire pageload. The GLOBAL option requires the web user to have SUPER permission, which isn't a good idea to give to a production server account.
This really ought to save the standard setting to a global variable on hook_boot(), then reset it on hook_exit(). It doesn't do that either.
Available SQL modes for configuration are as follows: