cargo fmt, fix compiler warnings

This commit is contained in:
Andy Grove 2018-12-16 13:57:01 -07:00
parent 24af049930
commit e863bc041c
8 changed files with 93 additions and 77 deletions

View file

@ -632,17 +632,18 @@ PHP ₱ USD $
//assert_eq!(sql, ast.to_string());
}
#[ignore]
#[test]
fn parse_timestamps_example() {
let sql = "2016-02-15 09:43:33";
let ast = parse_sql(sql);
assert_eq!(sql, ast.to_string());
let _ = parse_sql(sql);
//TODO add assertion
}
#[test]
fn parse_timestamps_with_millis_example() {
let sql = "2017-11-02 19:15:42.308637";
let _ = parse_sql(sql);
//TODO add assertion
}
#[test]
@ -742,7 +743,9 @@ fn parse_like() {
ASTNode::SQLBinaryExpr {
left: Box::new(ASTNode::SQLIdentifier("name".to_string())),
op: SQLOperator::Like,
right: Box::new(ASTNode::SQLValue(Value::SingleQuotedString("%a".to_string()))),
right: Box::new(ASTNode::SQLValue(Value::SingleQuotedString(
"%a".to_string()
))),
},
*selection.unwrap()
);