added limit 1 to arrays treated as a single value in schemas
This commit is contained in:
@ -180,6 +180,9 @@ impl SqlFormatter {
|
||||
|
||||
fn format_query(&mut self, query: &Query) {
|
||||
self.format_set_expr(&query.body);
|
||||
if let Some(limit_clause) = &query.limit_clause {
|
||||
self.push_line(&format!("{}", limit_clause.to_string().trim()));
|
||||
}
|
||||
}
|
||||
|
||||
fn format_set_expr(&mut self, set_expr: &SetExpr) {
|
||||
|
||||
Reference in New Issue
Block a user