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 2023/01/04 08:44:12 UTC

[GitHub] [shardingsphere] youlongchengfeng commented on issue #23325: IndexOutOfBoundsException occured at ShardingDALResultMerger.merge() when sql has multi ResultSet

youlongchengfeng commented on issue #23325:
URL: https://github.com/apache/shardingsphere/issues/23325#issuecomment-1370627058

   > Hi @youlongchengfeng, thank you for your feedback. Can you provide your configuration?
   
   ```
   	<bean id="ds0" class="com.alibaba.druid.pool.DruidDataSource" init-method="init" destroy-method="close">
   		<property name="url">
   			<value>${jdbc.url}</value>
   		</property>
   		<property name="username">
   			<value>${jdbc.username}</value>
   		</property>
   		<property name="password">
   			<value>${jdbc.password}</value>
   		</property>
   		<property name="initialSize">
   			<value>${jdbc.initialSize}</value>
   		</property>
   		<property name="maxActive">
   			<value>${jdbc.maxActive}</value>
   		</property>
   	</bean>
   	
   	<sharding:sharding-algorithm id="myTableHintShardingAlgorithm" type="CLASS_BASED">
   	    <props>
   	        <prop key="strategy">hint</prop>
   	        <prop key="algorithmClassName">com.oty.sys.sharding.algorithm.MyTableHintShardingAlgorithm</prop>
   	    </props>
   	</sharding:sharding-algorithm>
   	
       <sharding:hint-strategy id="tableShardingStrategy" algorithm-ref="myTableHintShardingAlgorithm" />
   	<sharding:rule id="shardingRule">
           <sharding:table-rules>
               <sharding:table-rule logic-table="t_device_param_record" actual-data-nodes="ds0.t_device_param_record_2022_06_01,ds0.t_device_param_record" table-strategy-ref="tableShardingStrategy" />
           </sharding:table-rules>
       </sharding:rule>
   	
       <shardingsphere:data-source id="shardingDataSource" data-source-names="ds0" rule-refs="shardingRule">
           <props>
               <prop key="sql-show">true</prop>
           </props>
       </shardingsphere:data-source>
   ```


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