Fix typo, causing wrong sorting results

This commit is contained in:
Peter Eisentraut 2015-10-08 21:23:45 -04:00
parent 290dd477f3
commit ab90f301b5
2 changed files with 3 additions and 3 deletions

View File

@ -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/

2
uri.c
View File

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