Skip to content

Commit

Permalink
feat: Change XOR operator to match postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Jun 28, 2024
1 parent 86c3948 commit a3308bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/gitql-parser/src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ pub fn tokenize(script: String) -> Result<Vec<Token>, Box<Diagnostic>> {
}

// xor
if char == '^' {
if char == '#' {
let location = Location {
start: column_start,
end: position,
Expand Down
2 changes: 1 addition & 1 deletion docs/functions/math.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| % | modulo |
| & | bitwise AND |
| \| | bitwise OR |
| ^ | bitwise XOR |
| # | bitwise XOR |
| >> | bitwise shift left |
| << | bitwise shift right |

Expand Down

0 comments on commit a3308bf

Please sign in to comment.