java - Data truncation: Data too long for column 'sql_stmt' at row 1 -


here xml code

<insert id="insertannualkiln" parametertype="list">         insert prm_annual_kiln (id,parent_id,runtime_kiln,runtimerate_kiln,shutdowntime_kiln,         shutdowndesc_kiln,heat_clinker,elect_clinker,equip_code,prod_clinker_type) values         <foreach collection="list" item="item" separator=",">             (#{item.id},#{item.parentid},#{item.runtimekiln},#{item.runtimeratekiln},             #{item.shutdowntimekiln},#{item.shutdowndesckiln},#{item.heatclinker},#{item.electclinker}             ,#{item.equipcode},#{item.prodclinkertype})         </foreach>     </insert> 

the list have 36 elements,it successed when cutted list 10 elements,here error.

### sql: insert prm_annual_kiln (id,parent_id,runtime_kiln,runtimerate_kiln,shutdowntime_kiln,   shutdowndesc_kiln,heat_clinker,elect_clinker,equip_code,prod_clinker_type) values         (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?)    ,     (?,?,?,?,    ?,?,?,?    ,?,?) ### cause: com.mysql.jdbc.mysqldatatruncation: data truncation: data long column 'sql_stmt' @ row 1 ; sql []; data truncation: data long column 'sql_stmt' @ row 1; nested exception com.mysql.jdbc.mysqldatatruncation: data truncation: data long column 'sql_stmt' @ row 1 

change column sql_stmt definition in table set longer length. such as:

alter table <table_name> modify sql_stmt varchar(<a longer length>); 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -