From 6fccacc66ad6a5c7e010d6c299297e96d9313b4c Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 14 Feb 2024 15:51:57 -0800 Subject: [PATCH] Fixed varchar tests [skip ci] --- test/t/020_hnsw_filtering.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/t/020_hnsw_filtering.pl b/test/t/020_hnsw_filtering.pl index 8c299fc..f76df8e 100644 --- a/test/t/020_hnsw_filtering.pl +++ b/test/t/020_hnsw_filtering.pl @@ -107,13 +107,13 @@ like($explain, qr/Index Scan/); $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE c >= '1' AND c <= '3' ORDER BY v <-> '$queries[0]' LIMIT $limit; )); -like($explain, qr/Index Cond: \(\(c >= \S+\) AND \(c <= \S+\)\)/); +like($explain, qr/Index Cond: \(\(\S+ >= \S+\) AND \(\S+ <= \S+\)\)/); # Test multiple conditions $explain = $node->safe_psql("postgres", qq( EXPLAIN ANALYZE SELECT i FROM tst WHERE c = '$cs[0]' AND c2 = '$cs[0]' ORDER BY v <-> '$queries[0]' LIMIT $limit; )); -like($explain, qr/Index Cond: \(\(c = \S+\) AND \(c2 = \S+\)\)/); +like($explain, qr/Index Cond: \(\(\S+ = \S+\) AND \(\S+ = \S+\)\)/); # Test no order $explain = $node->safe_psql("postgres", qq(