You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "www-haifeng (via GitHub)" <gi...@apache.org> on 2023/05/29 12:41:27 UTC
[GitHub] [shardingsphere] www-haifeng opened a new issue, #25938: line 5:34 no viable alternative at input 'TRIM(LEADING'00'FROMdealer_scm_code'
www-haifeng opened a new issue, #25938:
URL: https://github.com/apache/shardingsphere/issues/25938
**sql**
SELECT
reward_type AS reward_item,
SUM(unrecharge_amount) AS unrecharge_amount,
TRIM(LEADING '00' FROM dealer_scm_code) AS dealer_scm_code
FROM
rebate_account_report
WHERE
month_date = #{month_date} AND mcht_id = #{mcht_id} AND data_state = 1
GROUP BY
reward_type, dealer_scm_code
**springboot**
//https://mvnrepository.com/artifact/org.apache.shardingsphere/sharding-jdbc-spring-boot-starter
implementation group: 'org.apache.shardingsphere', name: 'sharding-jdbc-spring-boot-starter', version: '4.1.1'
// https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3'
why?why?why?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] TeslaCN commented on issue #25938: line 5:34 no viable alternative at input 'TRIM(LEADING'00'FROMdealer_scm_code'
Posted by "TeslaCN (via GitHub)" <gi...@apache.org>.
TeslaCN commented on issue #25938:
URL: https://github.com/apache/shardingsphere/issues/25938#issuecomment-1567682090
Hi @www-haifeng
You are using a legacy version. Please upgrade to ShardingSphere 5.3.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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org