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 2020/04/17 01:43:31 UTC

[GitHub] [incubator-shardingsphere] KomachiSion edited a comment on issue #5212: can not insert into proxy

KomachiSion edited a comment on issue #5212: can not insert into proxy
URL: https://github.com/apache/incubator-shardingsphere/issues/5212#issuecomment-614976837
 
 
   your `user_id` is varcher type which will be map to `String` java type. So your configuration need some change like :
   ```
    defaultDatabaseStrategy:
      inline:
        shardingColumn: user_id
        algorithmExpression: ds_${Integer.parseInt(user_id) % 2}
   ```
   

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