You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "yydeng626 (via GitHub)" <gi...@apache.org> on 2024/02/01 08:02:05 UTC

[PR] Support parsing SQL Server UPDATE OPENQUERY sql #29184 [shardingsphere]

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

   Fixes #29184.
   
   Changes proposed in this pull request:
     - support OPENDATASOURCE function feature
     - support update outputClause  feature
     - support update write row syntax feature
     - support sql
   ```
   1. UPDATE OPENQUERY (MyLinkedServer, 'SELECT GroupName FROM HumanResources.Department WHERE DepartmentID = 4')   
   SET GroupName = 'Sales and Marketing'
   
   2. UPDATE OPENDATASOURCE('SQLNCLI', 'Data Source=<server name>;Integrated Security=SSPI').AdventureWorks2022.HumanResources.Department
   SET GroupName = 'Sales and Marketing' WHERE DepartmentID = 4;
   
   3.UPDATE Production.Document  
   SET DocumentSummary .WRITE (N'features',28,10)  
   OUTPUT deleted.DocumentSummary,   
          inserted.DocumentSummary   
       INTO @MyTableVar  
   WHERE Title = N'Front Reflector Bracket Installation'
   
   4.UPDATE Production.ProductPhoto  
   SET ThumbNailPhoto = (  
       SELECT *  
       FROM OPENROWSET(BULK 'c:Tires.jpg', SINGLE_BLOB) AS x )  
   WHERE ProductPhotoID = 1
   
   5. UPDATE Archive.dbo.Records  
   SET [Chart] = CAST('Xray 1' as VARBINARY(max))  
   WHERE [SerialNumber] = 2
   ```
   ---
   
   Before committing this PR, I'm sure that I have checked the following options:
   - [ ] My code follows the [code of conduct](https://shardingsphere.apache.org/community/en/involved/conduct/code/) of this project.
   - [ ] I have self-reviewed the commit code.
   - [ ] I have (or in comment I request) added corresponding labels for the pull request.
   - [ ] I have passed maven check locally : `./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e`.
   - [ ] 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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Support parsing SQL Server UPDATE OPENQUERY sql #29184 [shardingsphere]

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on PR #29950:
URL: https://github.com/apache/shardingsphere/pull/29950#issuecomment-1920931691

   Hi @yydeng626, can you take a look for code conflict?


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


Re: [PR] Support parsing SQL Server UPDATE OPENQUERY sql #29184 [shardingsphere]

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu merged PR #29950:
URL: https://github.com/apache/shardingsphere/pull/29950


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