(v: Option<String>, param_name: &str)
| 2088 | } |
| 2089 | |
| 2090 | fn extract_byte_param_value(v: Option<String>, param_name: &str) -> Result<Option<u8>, PlanError> { |
| 2091 | match v { |
| 2092 | Some(v) if v.len() == 1 => Ok(Some(v.as_bytes()[0])), |
| 2093 | Some(..) => sql_bail!("COPY {} must be a single one-byte character", param_name), |
| 2094 | None => Ok(None), |
| 2095 | } |
| 2096 | } |
| 2097 | |
| 2098 | generate_extracted_config!( |
| 2099 | CopyOption, |
no test coverage detected