(
scx: &StatementContext,
select: SelectStatement<Aug>,
params: &Params,
copy_to: Option<CopyFormat>,
)
| 198 | } |
| 199 | |
| 200 | pub fn plan_select( |
| 201 | scx: &StatementContext, |
| 202 | select: SelectStatement<Aug>, |
| 203 | params: &Params, |
| 204 | copy_to: Option<CopyFormat>, |
| 205 | ) -> Result<Plan, PlanError> { |
| 206 | if let Some(f) = side_effecting_func::plan_select_if_side_effecting(scx, &select, params)? { |
| 207 | return Ok(Plan::SideEffectingFunc(f)); |
| 208 | } |
| 209 | |
| 210 | let (plan, _desc) = plan_select_inner(scx, select, params, copy_to)?; |
| 211 | Ok(Plan::Select(plan)) |
| 212 | } |
| 213 | |
| 214 | fn plan_select_inner( |
| 215 | scx: &StatementContext, |
no test coverage detected