We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d431c2 commit 046f321Copy full SHA for 046f321
src/ast/mod.rs
@@ -4490,15 +4490,10 @@ impl fmt::Display for Statement {
4490
options,
4491
query,
4492
} => {
4493
- if table_flag.is_some() {
4494
- write!(
4495
- f,
4496
- "CACHE {table_flag} TABLE {table_name}",
4497
- table_flag = table_flag.clone().unwrap(),
4498
- table_name = table_name,
4499
- )?;
+ if let Some(table_flag) = table_flag {
+ write!(f, "CACHE {table_flag} TABLE {table_name}")?;
4500
} else {
4501
- write!(f, "CACHE TABLE {table_name}",)?;
+ write!(f, "CACHE TABLE {table_name}")?;
4502
}
4503
4504
if !options.is_empty() {
0 commit comments