tuchun opened a new issue #8271:
URL: https://github.com/apache/shardingsphere/issues/8271


   ## Question
   
   1. `org.apache.shardingsphere.infra.exception.ShardingSphereException: Can 
not route tables for `[dual, SEQUENCE_OD_RECORD_ID]`, please make sure the 
tables are in same schema.
   `
   mybatis mapper:
   `<selectKey keyProperty="id" order="BEFORE" resultType="java.lang.Long">
               select SEQUENCE_OD_RECORD_ID.nextval from dual
           </selectKey>`
   
   2.'### Cause: java.lang.ClassCastException: 
org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.ColumnSegment
 cannot be cast to 
org.apache.shardingsphere.sql.parser.sql.common.segment.dml.expr.complex.ComplexExpressionSegment]
 with root cause'
   `### SQL: insert into OD_RECORD (ID, USER_ID, 
LINE_CODE,STATION_CODE,DEVICE_CODE,DEVICE_SEQ_NO,OD_TIME,CREATE_TIME)         
values (SEQUENCE_OD_RECORD_ID.nextval,?, ?, ?,         ?, ?, ?, ?)`
   
   mybatis mapper:
   `<insert id="insert" parameterType="com.shardj.entity.OdRecord">
           insert into OD_RECORD (ID, USER_ID, 
LINE_CODE,STATION_CODE,DEVICE_CODE,DEVICE_SEQ_NO,OD_TIME,CREATE_TIME)
           values (SEQUENCE_OD_RECORD_ID.nextval,#{userId,jdbcType=DECIMAL}, 
#{lineCode,jdbcType=VARCHAR}, #{stationCode,jdbcType=VARCHAR},
           #{deviceCode,jdbcType=VARCHAR}, #{deviceSeqNo,jdbcType=VARCHAR}, 
#{odTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP})
       </insert>`
   


----------------------------------------------------------------
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]


Reply via email to