为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】: DM8
【操作系统】:win11
【CPU】:
【问题描述】*:
报错:DMException: String truncated
Caused by: org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: dm.jdbc.driver.DMException: String truncated
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: MERGE INTO xxx o using ( select ? xx, ? farmId ...
字符串截断是由于char或者varchar类型的长度不够导致,达梦是以字节存储,需要根据初始化时指定的编码格式和字段长度来计算出最大可存储的字符数
遇到该问题,扩大字符串字段长度即可。