MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / parse_alter_array_null_value

Function parse_alter_array_null_value

nodedb-sql/src/parser/array_stmt/parse.rs:235–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234 #[test]
235 fn parse_alter_array_null_value() {
236 let sql = "ALTER ARRAY my_array SET (audit_retain_ms = NULL)";
237 let stmt = try_parse_array_statement(sql).unwrap().unwrap();
238 match stmt {
239 ArrayStatement::Alter(a) => {
240 assert_eq!(a.set[0].0, "audit_retain_ms");
241 assert_eq!(a.set[0].1, None);
242 }
243 _ => panic!("expected Alter variant"),
244 }
245 }
246
247 #[test]
248 fn parse_alter_array_multi_key() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected