From b97e82c1dab84399bbbd3eb66692bb095b7bae91 Mon Sep 17 00:00:00 2001 From: Radu Berinde Date: Thu, 4 Mar 2021 16:45:22 -0500 Subject: [PATCH] sql: add a regression test This commit adds a regression test for #58104 (the problem was already fixed). Resolves #58104. Release justification: non-production code change. Release note: None --- pkg/sql/logictest/testdata/logic_test/select | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/sql/logictest/testdata/logic_test/select b/pkg/sql/logictest/testdata/logic_test/select index e5b88db298bd..716cde581205 100644 --- a/pkg/sql/logictest/testdata/logic_test/select +++ b/pkg/sql/logictest/testdata/logic_test/select @@ -746,3 +746,7 @@ SELECT * FROM crdb_internal.jobs # Cleanup statement ok SET disallow_full_table_scans = false + +# Regression test for #58104. +statement ok +SELECT * FROM pg_catalog.pg_attrdef WHERE (adnum = 1 AND adrelid = 1) OR (adbin = 'foo' AND adrelid = 2)