[Comoblog-commit] comoblog/_install step_1.php,1.8,1.9
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2008-02-19 04:00:23
|
Update of /cvsroot/comoblog/comoblog/_install In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21763/_install Modified Files: step_1.php Log Message: 1701043 - fail gracefully when we hit MySQL STRICT mode Index: step_1.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/_install/step_1.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- step_1.php 19 Mar 2007 10:46:59 -0000 1.8 +++ step_1.php 19 Feb 2008 04:00:20 -0000 1.9 @@ -61,6 +61,14 @@ if (!$selectdb) $errors[] = 'Error selecting database (check database name)'; + $query = "SELECT @@global.sql_mode"; + $res = mysql_query($query); + if ($res) { + $row = mysql_fetch_assoc($res); + if ($row['@@global.sql_mode'] != "") + $errors[] = 'MySQL strict mode is not supported'; + } + $query = "select pref_value from ".$_POST['mysql_tabprefix']."preferences where pref_name='CFG_VERSION'"; $res = mysql_query($query); if ($res) |