dabingRyan opened a new issue, #24207:
URL: https://github.com/apache/shardingsphere/issues/24207

   ## Bug Report
   java.sql.SQLFeatureNotSupportedException: can't get index from 
columnLabel[xxxxxxxxx].
   
   ### Which version of ShardingSphere did you use?
   <dependency>
               <groupId>org.apache.shardingsphere</groupId>
               
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
               <version>5.2.0</version>
           </dependency>
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   shardingsphere-jdbc Read/Write Splitting
   
   ### Expected behavior
   
   
   java:
   private Collection<ColumnProjection> getColumnProjections(final 
Collection<Projection> projections) {
           Collection<ColumnProjection> result = new LinkedList<>();
           for (Projection each : projections) {
               if (each instanceof ColumnProjection) {
                   result.add((ColumnProjection) each);
               }
               if (each instanceof ShorthandProjection) {
                   result.addAll(((ShorthandProjection) 
each).getActualColumns().values());
               }
           }
           return result;
       }
   
   in this projections ,there has some ExpressionProjection, but not add to 
result.   
   sql:
   select ifnull(sell_price,0) productPrice from product where id=1;    
   
   ifnull(sell_price) productPrice is a ExpressionProjection
   ### Actual behavior
   
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to