mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-03 22:08:16 +00:00
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:
parent
f93e69d1d4
commit
eeae3af6a3
3 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue