(
catalog: &Catalog,
session: &Session,
stmt: Option<Statement<Raw>>,
param_types: Vec<Option<SqlScalarType>>,
)
| 103 | |
| 104 | #[mz_ore::instrument(level = "debug")] |
| 105 | pub(crate) fn describe( |
| 106 | catalog: &Catalog, |
| 107 | session: &Session, |
| 108 | stmt: Option<Statement<Raw>>, |
| 109 | param_types: Vec<Option<SqlScalarType>>, |
| 110 | ) -> Result<StatementDesc, AdapterError> { |
| 111 | if let Some(stmt) = stmt { |
| 112 | describe(catalog, stmt, ¶m_types, session) |
| 113 | } else { |
| 114 | Ok(StatementDesc::new(None)) |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /// Verify a prepared statement is still valid. This will return an error if |
| 119 | /// the catalog's revision has changed and the statement now produces a |
no test coverage detected