Skip to content

Commit

Permalink
MySQL8 利用時に既存テーブルの削除ができないのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Dec 16, 2024
1 parent b10fad0 commit 222e64b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 5 additions & 1 deletion html/install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,11 @@ function lfExecuteSQL($filepath, $arrDsn, $disp_err = true)
$dbFactory = SC_DB_DBFactory_Ex::getInstance($arrDsn['phptype']);
$val = $dbFactory->sfChangeReservedWords($val);
}
$ret = $objDB->query($val);
try {
$ret = $objDB->query($val);
} catch (Exception $e) {
$ret = new MDB2_Error();
}
if (PEAR::isError($ret) && $disp_err) {
$arrErr['all'] = '>> ' . $ret->message . '<br />';
// エラー文を取得する
Expand Down
6 changes: 0 additions & 6 deletions html/install/templates/install_frame.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<link rel="stylesheet" href="css/admin_contents.css" type="text/css" media="all" />
<!--[if lt IE 9]>
<script src="../js/jquery-1.11.1.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="../js/jquery-2.1.1.min.js"></script>
<!--<![endif]-->
<script type="text/javascript" src="../js/eccube.js"></script>

<script type="text/javascript">//<![CDATA[
Expand Down

0 comments on commit 222e64b

Please sign in to comment.