summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2006-03-22 13:01:16 +0400
committerunknown <bar@mysql.com>2006-03-22 13:01:16 +0400
commit187ff695092a300880c33f7acc0f384208d5c6b0 (patch)
treefaa44312b93c4b3cf1426847032ffa02b14a9459 /sql
parent0cfbdc4e00dfcd6aad0d1510c55a38c9c0818999 (diff)
parent64dc3289de27a26872f77070b693f52c88a9c36b (diff)
downloadmariadb-git-187ff695092a300880c33f7acc0f384208d5c6b0.tar.gz
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/home/bar/mysql-5.1-new.b18172
Diffstat (limited to 'sql')
-rw-r--r--sql/item_xmlfunc.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/item_xmlfunc.cc b/sql/item_xmlfunc.cc
index da39c1e4409..ae626b7c368 100644
--- a/sql/item_xmlfunc.cc
+++ b/sql/item_xmlfunc.cc
@@ -1561,10 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath)
return my_xpath_parse_RelativeLocationPath(xpath);
}
- if (my_xpath_parse_RelativeLocationPath(xpath))
- return 1;
-
- return 1;
+ return my_xpath_parse_term(xpath, MY_XPATH_LEX_EOF) ||
+ my_xpath_parse_RelativeLocationPath(xpath);
}