From ab90f301b5051227d1a582c5f39d1a4aee6a754f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 8 Oct 2015 21:23:45 -0400 Subject: [PATCH] Fix typo, causing wrong sorting results --- test/expected/test.out | 4 ++-- uri.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/expected/test.out b/test/expected/test.out index bffb978..fcd0738 100644 --- a/test/expected/test.out +++ b/test/expected/test.out @@ -273,13 +273,13 @@ SELECT DISTINCT b FROM test ORDER BY b; / /foobar + foobar HTTP://www.EXAMPLE.com/ eXAMPLE://a/./b/../b/%63/%7bfoo%7d - foobar ftp://ftp.gnu.org/gnu/bison http://[1080::8:800:200C:417A]/foo - http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html http://admin:password@192.168.0.1 + http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html http://host: http://www.ex%41mple.com/ http://www.postgresql.org/ diff --git a/uri.c b/uri.c index 06bf85d..7403fc4 100644 --- a/uri.c +++ b/uri.c @@ -356,7 +356,7 @@ _uri_cmp(Datum a, Datum b) int res = 0; parse_uri(sa, &ua); - parse_uri(sa, &ub); + parse_uri(sb, &ub); if (res == 0) res = cmp_text_range(ua.scheme, ub.scheme);