Disable MySQL strict mode so that errors do not occur if the server has it set. Fixes...
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 3 Feb 2009 00:12:12 +0000 (19:12 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 3 Feb 2009 00:12:12 +0000 (19:12 -0500)
* includes/init.php
* install/global.php

docs/changes.txt
includes/init.php
install/global.php

index b47ed8076ee4b366408b06666e81a00cbb4cf329..cb97448e0f5ce5c1dbd1a1569f74f66287e6b3dd 100644 (file)
@@ -6,6 +6,7 @@
 - Change: Required custom select fields will no longer show the empty option (these fields could not be saved as empty, though, because they wouldn't validate -- this is purely an interface change)
 - Change: The description (first comment) is now stored in a separate variable from the rest of the comments, allowing for one to move its placement in templates/showreport.tpl
 - Fixed: #148: The permission mask fields were smallint, when they should be int to hold larger int values that permission masks have
+- Fixed: #67: MySQL's strict mode would cause installation to fail
 
 1.2.2
 ===============================
index 757c684a4c55bf90c0bdacb40452112d08f3646e..d51ee77b961819371e685ef8177ce3f49b52180b 100755 (executable)
@@ -54,6 +54,9 @@ if ($utf8)
        $db->query("SET NAMES utf8");
 }
 
+// don't use sql strict mode
+$db->query("SET sql_mode = ''");
+
 $bugsys->load('functions', 'funct', true);
 $bugsys->load('xml', 'xml', true);
 
index 241dd0e2e32e51e66cb11e6a3f6ed7b006394af4..8b196a7ef6e628ed856ddb85cbc751aabf6a63f8 100644 (file)
@@ -56,6 +56,9 @@ if ($utf8)
        $db->query("SET NAMES utf8");
 }
 
+// don't use sql strict mode
+$db->query("SET sql_mode = ''");
+
 // needed for API validation
 $bugsys->load('functions', 'funct');