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);