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/12/18 07:01:11 UTC

[GitHub] [incubator-shardingsphere] snakeeeeeeeee opened a new issue #3757: no viable alternative at input '(channel'

snakeeeeeeeee opened a new issue #3757: no viable alternative at input '(channel'
URL: https://github.com/apache/incubator-shardingsphere/issues/3757
 
 
   # Which version of ShardingSphere did you use?
   4.0.0-RC3
   ### Which project did you use? Sharding-JDBC or Sharding-Proxy?
   sharding-jdbc
   ### Expected behavior
   execute sql:
   insert into demo(channel, name) values ('xx', 'xx') 
   report error:
   no viable alternative at input '(channel'
   ### Actual behavior
   Insert record faild
   ### Reason analyze (If you can)
   'channel' seems to be the keywords of sql parsing
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   sql:
   insert into demo(channel, name) values ('xx', 'xx')
   
   spring:
     shardingsphere:
       datasource:
         names: ds0
         ds0:
           driver-class-name: com.mysql.jdbc.Driver
           type: com.alibaba.druid.pool.DruidDataSource
       props:
         sql:
           show: true
       sharding:
         tables:
           user:
             actual-data-nodes: ds0.demo_$->{0..1}
             key-generator:
               column: id
               type: SNOWFLAKE
             table-strategy:
               inline:
                 algorithm-expression: demo_$->{id % 2}
                 sharding-column: id
   

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