File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4858,7 +4858,9 @@ impl fmt::Display for Statement {
4858
4858
if matches ! ( options, CreateTableOptions :: Options ( _) ) {
4859
4859
write ! ( f, " {options}" ) ?;
4860
4860
}
4861
- write ! ( f, " AS {query}" ) ?;
4861
+ f. write_str ( " AS" ) ?;
4862
+ SpaceOrNewline . fmt ( f) ?;
4863
+ query. fmt ( f) ?;
4862
4864
if * with_no_schema_binding {
4863
4865
write ! ( f, " WITH NO SCHEMA BINDING" ) ?;
4864
4866
}
Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ CREATE TABLE my_table (
264
264
}
265
265
266
266
#[ test]
267
- #[ ignore = "https://github.com/apache/datafusion-sqlparser-rs/issues/1850" ]
268
267
fn test_pretty_print_create_view ( ) {
269
268
assert_eq ! (
270
269
prettify( "CREATE VIEW my_view AS SELECT a, b FROM my_table WHERE x > 0" ) ,
You can’t perform that action at this time.
0 commit comments