Welcome Guest, Not a member yet? Register   Sign In
mySQL rules different between dev & live sites
#4

[eluser]WanWizard[/eluser]
Since MySQL 5.0.2 this is configurable at engine or session level.

It's very nice (not!) that someone has disabled this in the config, usually done to support a poorly written legacy application. Unfortunately, this affects other applications using the same engine, as you have noticed.

If you don't need DB portability, you can enforce it from your application at runtime, by executing
Code:
$this->db->query("SET SESSION sql_mode='STRICT_ALL_TABLES'");


Messages In This Thread
mySQL rules different between dev & live sites - by El Forum - 05-25-2010, 06:38 AM
mySQL rules different between dev & live sites - by El Forum - 05-25-2010, 06:44 AM
mySQL rules different between dev & live sites - by El Forum - 05-25-2010, 06:51 AM
mySQL rules different between dev & live sites - by El Forum - 05-25-2010, 07:36 AM
mySQL rules different between dev & live sites - by El Forum - 05-25-2010, 07:50 AM
mySQL rules different between dev & live sites - by El Forum - 05-25-2010, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB