Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6339719b
Commit
6339719b
authored
Nov 23, 2007
by
ramil/ram@mysql.com/ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.1-engines
into mysql.com:/home/ram/work/b32557/b32557.5.1
parents
8ba6ecc7
b8f65ccf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
mysql-test/r/xml.result
mysql-test/r/xml.result
+7
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+8
-0
sql/item_xmlfunc.h
sql/item_xmlfunc.h
+10
-2
No files found.
mysql-test/r/xml.result
View file @
6339719b
...
...
@@ -1022,4 +1022,11 @@ NULL NULL NULL
select updatexml(NULL, NULL, NULL);
updatexml(NULL, NULL, NULL)
NULL
CREATE TABLE t1(a INT NOT NULL);
INSERT INTO t1 VALUES (0), (0);
SELECT 1 FROM t1 ORDER BY(UPDATEXML(a, '1', '1'));
1
1
1
DROP TABLE t1;
End of 5.1 tests
mysql-test/t/xml.test
View file @
6339719b
...
...
@@ -543,4 +543,12 @@ select updatexml(NULL, NULL, 1), updatexml(1, NULL, NULL),
updatexml
(
NULL
,
1
,
NULL
);
select
updatexml
(
NULL
,
NULL
,
NULL
);
#
# Bug #32557: order by updatexml causes assertion in filesort
#
CREATE
TABLE
t1
(
a
INT
NOT
NULL
);
INSERT
INTO
t1
VALUES
(
0
),
(
0
);
SELECT
1
FROM
t1
ORDER
BY
(
UPDATEXML
(
a
,
'1'
,
'1'
));
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
sql/item_xmlfunc.h
View file @
6339719b
...
...
@@ -28,8 +28,16 @@ protected:
String
tmp_value
,
pxml
;
Item
*
nodeset_func
;
public:
Item_xml_str_func
(
Item
*
a
,
Item
*
b
)
:
Item_str_func
(
a
,
b
)
{}
Item_xml_str_func
(
Item
*
a
,
Item
*
b
,
Item
*
c
)
:
Item_str_func
(
a
,
b
,
c
)
{}
Item_xml_str_func
(
Item
*
a
,
Item
*
b
)
:
Item_str_func
(
a
,
b
)
{
maybe_null
=
TRUE
;
}
Item_xml_str_func
(
Item
*
a
,
Item
*
b
,
Item
*
c
)
:
Item_str_func
(
a
,
b
,
c
)
{
maybe_null
=
TRUE
;
}
void
fix_length_and_dec
();
String
*
parse_xml
(
String
*
raw_xml
,
String
*
parsed_xml_buf
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment