From 6e56fbae70e3098e97bcfd4e3a3da8b033578ed9 Mon Sep 17 00:00:00 2001 From: James Guthrie Date: Wed, 13 Nov 2024 17:57:12 +0100 Subject: [PATCH] fix: test_schema_qualification pg17 started automatically creating an array type for all types, so our test for "accidental stabilization" had the be taught about them. --- extension/src/stabilization_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extension/src/stabilization_tests.rs b/extension/src/stabilization_tests.rs index bb2f6909..a7b0be89 100644 --- a/extension/src/stabilization_tests.rs +++ b/extension/src/stabilization_tests.rs @@ -55,7 +55,11 @@ mod tests { return None; } - if stable_types.contains(ty) { + // PG17 started automatically creating an array type for types, so we need + // to take those into account. + let ty_no_array = ty.replace("[]", ""); + + if stable_types.contains(ty) || stable_types.contains(&ty_no_array) { return None; }