Re-run cargo fmt

This commit is contained in:
Nickolay Ponomarev 2019-03-08 15:46:40 +03:00
parent 23a0fc79f5
commit f30ab89ad2
3 changed files with 26 additions and 5 deletions

View file

@ -901,7 +901,11 @@ fn parse_scalar_subqueries() {
fn parse_create_view() {
let sql = "CREATE VIEW myschema.myview AS SELECT foo FROM bar";
match verified_stmt(sql) {
SQLStatement::SQLCreateView { name, query, materialized } => {
SQLStatement::SQLCreateView {
name,
query,
materialized,
} => {
assert_eq!("myschema.myview", name.to_string());
assert_eq!("SELECT foo FROM bar", query.to_string());
assert!(!materialized);
@ -914,7 +918,11 @@ fn parse_create_view() {
fn parse_create_materialized_view() {
let sql = "CREATE MATERIALIZED VIEW myschema.myview AS SELECT foo FROM bar";
match verified_stmt(sql) {
SQLStatement::SQLCreateView { name, query, materialized } => {
SQLStatement::SQLCreateView {
name,
query,
materialized,
} => {
assert_eq!("myschema.myview", name.to_string());
assert_eq!("SELECT foo FROM bar", query.to_string());
assert!(materialized);