hsql mybatis 表不存在_mybatis集成人大金仓kingbase8无法识别表

在使用MyBatis与Kingbase8数据库进行数据查询时,遇到BadSqlGrammarException,原因是数据库无法识别到名为'PS_SEAL'的表。异常堆栈跟踪显示错误发生在SQL查询过程中,提示relation "PS_SEAL" does not exist,可能需要检查数据表是否存在或者相关配置是否正确。
摘要由CSDN通过智能技术生成

2020-07-07 10:30:32,634 [main] [com.alibaba.druid.pool.DruidDataSource] [ERROR] - testWhileIdle is true, validationQuery not set

2020-07-07 10:30:32,655 [main] [com.alibaba.druid.pool.DruidDataSource] [INFO] - {dataSource-1} inited

2020-07-07 10:30:32.918 INFO [main] [org.springframework.beans.factory.xml.XmlBeanDefinitionReader_loadBeanDefinitions]: Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]

2020-07-07 10:30:33.047 INFO [main] [org.springframework.jdbc.support.SQLErrorCodesFactory_]: SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase, Hana]

org.springframework.jdbc.BadSqlGrammarException:

Error querying database. Cause: com.kingbase8.util.KSQLException: ERROR: relation "PS_SEAL" does not exist

Position: 392

The error may exist in file [D:\workspace\use-seal\signcloud\seal\seal-dao\target\classes\com\cloud\stamp\dao\master\mapping\PsSealMapper.xml]

The error may involve com.cloud.stamp.dao.master.mapper.PsSealDao.selectByKey-Inline

The error occurred while setting parameters

SQL: SELECT id, es_id, name, owner_name, es_key, type, status, image_type, image_path, image_width, image_height, seal_path, site_id, create_time, update_time, create_date, valid_start, valid_end FROM ps_seal WHERE id = ? order by id desc

Cause: com.kingbase8.util.KSQLException: ERROR: relation "PS_SEAL" does not exist

Position: 392

; bad SQL grammar []; nested exception is com.kingbase8.util.KSQLException: ERROR: relation "PS_SEAL" does not exist

<
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值