()
| 431 | |
| 432 | #[test] |
| 433 | fn json_string_form_rejected() { |
| 434 | let err = plan_ann_err( |
| 435 | r#"SELECT id FROM embeddings ORDER BY vector_distance(embedding, [1.0, 0.0], '{"quantization":"rabitq"}') LIMIT 5"#, |
| 436 | ); |
| 437 | assert!( |
| 438 | matches!(err, crate::error::SqlError::Unsupported { ref detail } if detail.contains("JSON-string options are no longer supported")), |
| 439 | "expected Unsupported with JSON message, got: {err:?}" |
| 440 | ); |
| 441 | } |
| 442 | |
| 443 | #[test] |
| 444 | fn unknown_named_arg_rejected() { |
nothing calls this directly
no test coverage detected