yanickxia opened a new pull request #3284: Fix assignmentValueNode get error 
index
URL: https://github.com/apache/incubator-shardingsphere/pull/3284
 
 
   Fixes #3279
   
   Changes proposed in this pull request:
   - Fix get error index for nest Assignment Segment
   
   Case 1:
   ```sql
   update OTS_ORDER set UPDATE_DATE = now() where ID = 1;
   ```
   then assignmentNode child size 3,  a -> CloumName; b -> = ; c -> now(), 
should get index 2
   
   Case 2:
   ```sql
   update OTS_ORDER set UPDATE_DATE = (now()+1) where ID = 1;
   update OTS_ORDER set UPDATE_DATE = (now()) where ID = 1;
   ```
   
   then assignmentNode child size 5,  a -> CloumName; b -> = ; c -> (;  d-> 
now()+1; e -> ), should get index 3
   
   <!-- Reviewable:start -->
   ---
   This change is [<img src="https://reviewable.io/review_button.svg"; 
height="34" align="absmiddle" 
alt="Reviewable"/>](https://reviewable.io/reviews/apache/incubator-shardingsphere/3284)
   <!-- Reviewable:end -->
   

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


With regards,
Apache Git Services

Reply via email to