Skip to content

Conversation

@ranma42
Copy link
Contributor

@ranma42 ranma42 commented Jun 23, 2024

Fixes #16645.

Based on previous work by @roji.

@ranma42
Copy link
Contributor Author

ranma42 commented Jun 23, 2024

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