Change the default serialization of "not equals" operator to <>

`!=` is not standard, though widely supported - https://stackoverflow.com/a/723426/1026
This commit is contained in:
Nickolay Ponomarev 2019-05-06 01:25:25 +03:00
parent f93e69d1d4
commit eeae3af6a3
3 changed files with 5 additions and 5 deletions

View file

@ -221,7 +221,7 @@ fn parse_collate() {
#[test]
fn parse_select_string_predicate() {
let sql = "SELECT id, fname, lname FROM customer \
WHERE salary != 'Not Provided' AND salary != ''";
WHERE salary <> 'Not Provided' AND salary <> ''";
let _ast = verified_only_select(sql);
//TODO: add assertions
}
@ -238,7 +238,7 @@ fn parse_escaped_single_quote_string_predicate() {
use self::ASTNode::*;
use self::SQLOperator::*;
let sql = "SELECT id, fname, lname FROM customer \
WHERE salary != 'Jim''s salary'";
WHERE salary <> 'Jim''s salary'";
let ast = verified_only_select(sql);
assert_eq!(
Some(SQLBinaryExpr {