You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/07/25 01:15:18 UTC

[GitHub] [incubator-shardingsphere] xiaolong7713 edited a comment on issue #2753: key generator column set error column

xiaolong7713 edited a comment on issue #2753: key generator column set error column
URL: https://github.com/apache/incubator-shardingsphere/issues/2753#issuecomment-514648383
 
 
   I also encountered this problem, your SQL certainly contains a null value,The ID filled a NULL value column,you can alter SQL like this:
   
   ```
           <trim prefix="(" suffix=")" suffixOverrides=",">
   			<if test="callId != null">call_id,</if>
   			<if test="deviceIp != null">device_ip,</if>
   			<if test="deviceMac != null">device_mac,</if>
   			<if test="recordingAddress != null">recording_address,</if>
   			<if test="duration != null">duration,</if>
   			<if test="trunkNumber != null">trunk_number,</if>
   			<if test="createTime != null">create_time,</if>
   		</trim>
   		<trim prefix="values (" suffix=")" suffixOverrides=",">
   			<if test="callId != null">#{callId},</if>
   			<if test="deviceIp != null">#{deviceIp},</if>
   			<if test="deviceMac != null">#{deviceMac},</if>
   			<if test="recordingAddress != null">#{recordingAddress},</if>
   			<if test="duration != null">#{duration},</if>
   			<if test="trunkNumber != null">#{trunkNumber},</if>
   			<if test="createTime != null">#{createTime},</if>
   		</trim>
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services