()
| 54 | /// DML in function body is rejected at CREATE time. |
| 55 | #[tokio::test(flavor = "multi_thread", worker_threads = 4)] |
| 56 | async fn reject_dml_in_function_body() { |
| 57 | let server = TestServer::start().await; |
| 58 | |
| 59 | server |
| 60 | .expect_error( |
| 61 | "CREATE FUNCTION bad_func(x INT) RETURNS INT AS \ |
| 62 | BEGIN INSERT INTO t (id) VALUES (x); RETURN x; END", |
| 63 | "side-effecting", |
| 64 | ) |
| 65 | .await; |
| 66 | } |
| 67 | |
| 68 | /// Procedural UDF with IF/ELSE compiles successfully. |
| 69 | #[tokio::test(flavor = "multi_thread", worker_threads = 4)] |
nothing calls this directly
no test coverage detected