()
| 1302 | #[mz_ore::test] |
| 1303 | #[allow(clippy::disallowed_methods)] |
| 1304 | fn test_explain_timestamp_json() { |
| 1305 | let server = test_util::TestHarness::default().start_blocking(); |
| 1306 | let mut client = server.connect(postgres::NoTls).unwrap(); |
| 1307 | client.batch_execute("CREATE TABLE t1 (i1 int)").unwrap(); |
| 1308 | |
| 1309 | let row = client |
| 1310 | .query_one("EXPLAIN TIMESTAMP AS JSON FOR SELECT * FROM t1;", &[]) |
| 1311 | .unwrap(); |
| 1312 | let explain: String = row.get(0); |
| 1313 | // Just check that we can round-trip to the original type |
| 1314 | let _explain: TimestampExplanation = serde_json::from_str(&explain).unwrap(); |
| 1315 | } |
| 1316 | |
| 1317 | // Verify that `EXPLAIN TIMESTAMP ...` within acts like a peek within a transaction. |
| 1318 | // That is, ensure the following: |
nothing calls this directly
no test coverage detected