提交 babec518 编写于 作者: ModStart's avatar ModStart

develop

上级 a249a5ce
......@@ -5,5 +5,5 @@ namespace App\Constant;
class AppConstant
{
const APP = 'cms';
const VERSION = '2.5.0';
const VERSION = '2.5.1';
}
......@@ -80,6 +80,10 @@ class InstallController extends Controller
try {
new PDO("mysql:host=$dbHost;dbname=$dbDatabase", $dbUsername, $dbPassword);
} catch (\Exception $e) {
$msg = $e->getMessage();
if (str_contains($msg, 'Server sent charset unknown to the client')) {
return Response::generateError('数据库编码不支持');
}
return Response::jsonError('连接数据信息 ' . $dbHost . '.' . $dbDatabase . ' 失败!');
}
......
......@@ -39,7 +39,7 @@ class MySqlGrammar extends Grammar
*/
public function compileColumnExists()
{
return 'select column_name from information_schema.columns where table_schema = ? and table_name = ?';
return 'select column_name as column_name from information_schema.columns where table_schema = ? and table_name = ?';
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册