注册

有字段名为“week”, 适配达梦后有如下报错

xLight 2024/11/22 445 6 已解决

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】: DM Database Server 64 V8 03134284194-20240703-234060-20108
【操作系统】:麒麟V10
【CPU】: 鲲鹏920
【问题描述】*:

数据表里面有一个字段 名为“week”, 适配达梦后有如下报错,
请问如何在不修改字段名的情况下解决?

org.springframework.dao.DataIntegrityViolationException: 
### Error updating database.  Cause: dm.jdbc.driver.DMException: 第1 行附近出现错误:
无效的列名[week]
### The error may exist in com/inx/inx/inx/mapper/InxMapper.java (best guess)
### The error may involve com.inx.inx.inx.mapper.InxMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO dm_inx  ( id, x1_id, x2_id,  x3_name, inx_code,  inx_url, inx_scope, inx_mode, inx_begin_time, inx_end_time, choose_begin_time, choose_end_time,  is_share,       inx_status,    is_limit_stu,  week,       create_time, update_time,  create_id, create_user )  VALUES  ( ?, ?, ?,  ?, ?,  ?, ?, ?, ?, ?, ?, ?,  ?,       ?,    ?,  ?,       ?, ?,  ?, ? )
### Cause: dm.jdbc.driver.DMException: 第1 行附近出现错误:
无效的列名[week]
; 第1 行附近出现错误:
无效的列名[week]; nested exception is dm.jdbc.driver.DMException: 第1 行附近出现错误:
无效的列名[week]

回答 0
暂无回答
扫一扫
联系客服