Skip to content

Implement translation for XOR - #34071

Merged
cincuranet merged 3 commits into
dotnet:mainfrom
ranma42:bitwise-xor
Jun 24, 2024
Merged

Implement translation for XOR#34071
cincuranet merged 3 commits into
dotnet:mainfrom
ranma42:bitwise-xor

Conversation

@ranma42

@ranma42 ranma42 commented Jun 23, 2024

Copy link
Copy Markdown
Contributor

Fixes #16645.

Based on previous work by @roji.

@ranma42

ranma42 commented Jun 23, 2024

Copy link
Copy Markdown
Contributor Author

SQLite does not implement bitwise XOR natively, but it would be easy to add it as a custom function. The XOR between bool expressions could also be implemented as a !=, just like in Cosmos.

SQLServer could take advantage of this to improve (in some cases) the translation of NOT.

This PR only adds the basic implementation (no optimizations/simplifications).

@ranma42
ranma42 marked this pull request as ready for review June 23, 2024 12:21
@cincuranet
cincuranet merged commit 7e313ab into dotnet:main Jun 24, 2024
@ranma42
ranma42 deleted the bitwise-xor branch June 24, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Query: Bitwise Ex-Or support

3 participants