(self)
| 23 | |
| 24 | impl SqlAst { |
| 25 | pub fn qualify_vars(self) -> Self { |
| 26 | match self { |
| 27 | Self::Select(select) => Self::Select(select.qualify_vars()), |
| 28 | Self::Update(SqlUpdate { |
| 29 | table: with, |
| 30 | assignments, |
| 31 | filter, |
| 32 | }) => Self::Update(SqlUpdate { |
| 33 | table: with.clone(), |
| 34 | filter: filter.map(|expr| expr.qualify_vars(with)), |
| 35 | assignments, |
| 36 | }), |
| 37 | Self::Delete(SqlDelete { table: with, filter }) => Self::Delete(SqlDelete { |
| 38 | table: with.clone(), |
| 39 | filter: filter.map(|expr| expr.qualify_vars(with)), |
| 40 | }), |
| 41 | _ => self, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | pub fn find_unqualified_vars(self) -> SqlParseResult<Self> { |
| 46 | match self { |
no test coverage detected