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 {
48584858 if matches ! ( options, CreateTableOptions :: Options ( _) ) {
48594859 write ! ( f, " {options}" ) ?;
48604860 }
4861- write ! ( f, " AS {query}" ) ?;
4861+ f. write_str ( " AS" ) ?;
4862+ SpaceOrNewline . fmt ( f) ?;
4863+ query. fmt ( f) ?;
48624864 if * with_no_schema_binding {
48634865 write ! ( f, " WITH NO SCHEMA BINDING" ) ?;
48644866 }
Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ CREATE TABLE my_table (
264264}
265265
266266#[ test]
267- #[ ignore = "https://github.com/apache/datafusion-sqlparser-rs/issues/1850" ]
268267fn test_pretty_print_create_view ( ) {
269268 assert_eq ! (
270269 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