From f9d415d4d795e711464c939ba6d6ffed82bba56c Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 18 Aug 2015 15:11:21 +0900 Subject: [PATCH] =?UTF-8?q?sql=5Fmode=20=EC=B2=B4=ED=81=AC=20=ED=9B=84=20?= =?UTF-8?q?=EB=8C=80=EC=9D=91=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/install_db.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install/install_db.php b/install/install_db.php index f7fbf935f..d32745f86 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -53,10 +53,12 @@ if (!$select_db) { $mysql_set_mode = 'false'; @mysql_query('set names utf8'); -if(version_compare(mysql_get_server_info(), '5.6.6', '>=') == 1) { +$row = mysql_fetch_assoc(mysql_query(" SELECT @@sql_mode as mode ")); +if($row['mode']) { @mysql_query("SET SESSION sql_mode = ''"); $mysql_set_mode = 'true'; } +unset($row); ?>