zhangfenghuang commented on issue #2252: insert with generated keys,when the 
last column value is null,cause NullPointerException
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2252#issuecomment-486078974
 
 
   like this:
    insert into xxxxx (xxxxx, xxxxx, 
         xxxx, xxxx, xxxx, 
         xxxx, xxx, xxxx, 
         xxx, delete_flag, create_emp, 
         create_org, create_time, update_time
         )
       values (#{xxxx,jdbcType=VARCHAR}, #{xxxx,jdbcType=VARCHAR}, 
         #{xxxx,jdbcType=VARCHAR}, #{xxxx,jdbcType=VARCHAR}, 
#{xxxx,jdbcType=VARCHAR}, 
         #{xxx,jdbcType=VARCHAR}, #{xxxx,jdbcType=INTEGER}, 
#{xxx,jdbcType=SMALLINT}, 
         #{xxx,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=BIT}, 
#{createEmp,jdbcType=VARCHAR}, 
         #{createOrg,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, 
#{updateTime,jdbcType=TIMESTAMP}
         )
   
   column "updateTime" is null,cause NullPointerException
   remove "updateTime“,inserted
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to