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
foobar
HTTP://www.EXAMPLE.com/ HTTP://www.EXAMPLE.com/
eXAMPLE://a/./b/../b/%63/%7bfoo%7d eXAMPLE://a/./b/../b/%63/%7bfoo%7d
foobar
ftp://ftp.gnu.org/gnu/bison ftp://ftp.gnu.org/gnu/bison
http://[1080::8:800:200C:417A]/foo 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://admin:password@192.168.0.1
http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html
http://host: http://host:
http://www.ex%41mple.com/ http://www.ex%41mple.com/
http://www.postgresql.org/ http://www.postgresql.org/

2
uri.c
View File

@ -356,7 +356,7 @@ _uri_cmp(Datum a, Datum b)
int res = 0; int res = 0;
parse_uri(sa, &ua); parse_uri(sa, &ua);
parse_uri(sa, &ub); parse_uri(sb, &ub);
if (res == 0) if (res == 0)
res = cmp_text_range(ua.scheme, ub.scheme); res = cmp_text_range(ua.scheme, ub.scheme);