alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.35k stars 12.86k forks source link

使用Mysql数据库时,配置管理画面,安装格式查询报SQL错误 #12861

Closed zhao-qiwei closed 1 day ago

zhao-qiwei commented 4 days ago

Describe the bug 使用Mysql数据库时,配置管理画面,按照格式查询报SQL错误

Desktop (please complete the following information):

Additional context 【nacos/plugin/datasource/src/main/java/com/alibaba/nacos/plugin/datasource/impl/mysql/ConfigInfoMapperByMySql.java】文件的【public MapperResult findConfigInfoLike4PageFetchRows(MapperContext context) {】方法的第252行:

        if (!ArrayUtils.isEmpty(types)) {
            where.in("type", types); // 这里应该是:where.and().in("type", types);
        }