Skip to content

将MySQL执行脚本通过数据转输转成postgresql以后,导入数据库表功能出现异常 #9047

@hjhcos

Description

@hjhcos
版本号:

3.6.3

分支:

jeecgboot

问题描述:

在 【online 表单开发】界面,点击【导入数据库表】对已经存在的表导入 online 表单配置,无法识别到表单的列字段,一直报 ”错误: 作为一个表达式使用的子查询返回了多列“,但是我新增online表单新增列字段都是正常的,就是已经存在的表导入就不正常。我的数据转输时没有问题的,因为整个系统模块访问都是正常的。顺便导入一张表都能复现这个问题,然后使用online表单开发里面的导入数据库表都能复现这个问题。
2025-10-30 20:02:09.400 [http-nio-8081-exec-6] ERROR org.jeecg.modules.online.cgform.service.a.d:860 - 错误: 作为一个表达式使用的子查询返回了多列
org.postgresql.util.PSQLException: 错误: 作为一个表达式使用的子查询返回了多列
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2565)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2297)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:322)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:481)
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:401)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:322)
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:308)
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:284)
at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:236)
at org.jeecgframework.codegenerate.database.DbReadTableUtil.readOriginalTableColumn(DbReadTableUtil.java:452)
at org.jeecg.modules.online.cgform.service.a.d.saveDbTable2Online(OnlCgformHeadServiceImpl.java:726)
at org.jeecg.modules.online.cgform.service.a.d$$FastClassBySpringCGLIB$$76271ae2.invoke()

错误截图:
Image Image Image

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions