(
scx: &'a StatementContext,
name: UnresolvedSchemaName,
if_exists: bool,
)
| 7864 | } |
| 7865 | |
| 7866 | pub(crate) fn resolve_schema<'a>( |
| 7867 | scx: &'a StatementContext, |
| 7868 | name: UnresolvedSchemaName, |
| 7869 | if_exists: bool, |
| 7870 | ) -> Result<Option<(ResolvedDatabaseSpecifier, SchemaSpecifier)>, PlanError> { |
| 7871 | match scx.resolve_schema(name) { |
| 7872 | Ok(schema) => Ok(Some((schema.database().clone(), schema.id().clone()))), |
| 7873 | Err(_) if if_exists => Ok(None), |
| 7874 | Err(e) => Err(e), |
| 7875 | } |
| 7876 | } |
| 7877 | |
| 7878 | pub(crate) fn resolve_network_policy<'a>( |
| 7879 | scx: &'a StatementContext, |
no test coverage detected