TherChenYang opened a new pull request, #29685:
URL: https://github.com/apache/shardingsphere/pull/29685

   Fixes #29155.
   
   Changes proposed in this pull request:
     - Adjust CONVERT method vistor number
     - Fix LiteralExpressionSegment does not support null literals 
     - support SQL in 29155
   
   Sql case :
   ```sql
   INSERT INTO #NonExistentTable values (10)
   ```
   
   ```sql
   SELECT s.ticket, s.customer, r.store  
   FROM dbo.Sales AS s  
   CROSS JOIN dbo.Returns AS r  
   WHERE s.ticket = r.ticket AND  
   s.type = 'toy' AND  
   r.date = '2016-05-11'
   ```
   
   ```sql
   SELECT tat.transaction_begin_time, getdate() AS 'current time', 
es.program_name, es.login_time, es.session_id, tst.open_transaction_count, 
eib.event_info
   FROM sys.dm_tran_active_transactions tat
   JOIN sys.dm_tran_session_transactions tst ON 
tat.transaction_id=tst.transaction_id
   JOIN sys.dm_exec_sessions es ON tst.session_id=es.session_id 
   CROSS APPLY sys.dm_exec_input_buffer(es.session_id, NULL) eib WHERE 
es.is_user_process = 1
   ORDER BY tat.transaction_begin_time ASC
   ```
   
   ```sql
   SELECT text, 'DBCC FREEPROCCACHE (0x' + CONVERT(VARCHAR (512), plan_handle, 
2) + ')' AS dbcc_freeproc_command FROM sys.dm_exec_cached_plans
   CROSS APPLY sys.dm_exec_query_plan(plan_handle)
   CROSS APPLY sys.dm_exec_sql_text(plan_handle)
   WHERE text LIKE '%person.person%'
   ```
   
   ```sql
   SELECT ProductID, Name, ProductNumber
   FROM [Production].[Product]
   WHERE SUBSTRING(ProductNumber, 0, 4) =  'HN-'
   ```
   ---
   
   Before committing this PR, I'm sure that I have checked the following 
options:
   - [x] My code follows the [code of 
conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) 
of this project.
   - [x] I have self-reviewed the commit code.
   - [ ] I have (or in comment I request) added corresponding labels for the 
pull request.
   - [x] I have passed maven check locally : `./mvnw clean install -B -T1C 
-Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [x] I have made corresponding changes to the documentation.
   - [ ] I have added corresponding unit tests for my changes.
   


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