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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7eb1898c
Commit
7eb1898c
authored
Mar 01, 2011
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Plain Diff
Merging from mysql-5.1
parents
0da82cf8
e2cab2c5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
mysql-test/r/xml.result
mysql-test/r/xml.result
+8
-0
mysql-test/t/xml.test
mysql-test/t/xml.test
+5
-0
strings/xml.c
strings/xml.c
+6
-1
No files found.
mysql-test/r/xml.result
View file @
7eb1898c
...
...
@@ -1124,6 +1124,14 @@ Warning 1525 Incorrect XML value: 'parse error at line 1 pos 2: END-OF-INPUT une
SELECT
UPDATEXML
(
CONVERT
(
_latin1
'<!
--
'
USING
utf8
),'
1
','
1
');
UPDATEXML
(
CONVERT
(
_latin1
'<!
--
'
USING
utf8
),'
1
','
1
')
NULL
#
#
Bug#11766725
(
bug#59901
)
:
EXTRACTVALUE
STILL
BROKEN
AFTER
FIX
FOR
BUG
#44332
#
SELECT
ExtractValue
(
CONVERT
('<\"',
BINARY
(
10
)),
1
);
ExtractValue
(
CONVERT
('<\"',
BINARY
(
10
)),
1
)
NULL
Warnings:
Warning
1525
Incorrect
XML
value:
'
parse
error
at
line
1
pos
11:
STRING
unexpected
(
ident
or
'/'
wanted
)'
End
of
5
.
1
tests
#
#
Start
of
5
.
5
tests
...
...
mysql-test/t/xml.test
View file @
7eb1898c
...
...
@@ -646,6 +646,11 @@ SELECT EXTRACTVALUE('', LPAD(0.1111E-15, '2011', 1));
SELECT
UPDATEXML
(
CONVERT
(
_latin1
'<'
USING
utf8
),
'1'
,
'1'
);
SELECT
UPDATEXML
(
CONVERT
(
_latin1
'<!--'
USING
utf8
),
'1'
,
'1'
);
--
echo
#
--
echo
# Bug#11766725 (bug#59901): EXTRACTVALUE STILL BROKEN AFTER FIX FOR BUG #44332
--
echo
#
SELECT
ExtractValue
(
CONVERT
(
'<\"'
,
BINARY
(
10
)),
1
);
--
echo
End
of
5.1
tests
...
...
strings/xml.c
View file @
7eb1898c
...
...
@@ -165,11 +165,16 @@ static int my_xml_scan(MY_XML_PARSER *p,MY_XML_ATTR *a)
}
else
if
(
(
p
->
cur
[
0
]
==
'"'
)
||
(
p
->
cur
[
0
]
==
'\''
)
)
{
/*
"string" or 'string' found.
Scan until the closing quote/doublequote, or until the END-OF-INPUT.
*/
p
->
cur
++
;
for
(;
(
p
->
cur
<
p
->
end
)
&&
(
p
->
cur
[
0
]
!=
a
->
beg
[
0
]);
p
->
cur
++
)
{}
a
->
end
=
p
->
cur
;
if
(
a
->
beg
[
0
]
==
p
->
cur
[
0
])
p
->
cur
++
;
if
(
p
->
cur
<
p
->
end
)
/* Closing quote or doublequote has been found */
p
->
cur
++
;
a
->
beg
++
;
if
(
!
(
p
->
flags
&
MY_XML_FLAG_SKIP_TEXT_NORMALIZATION
))
my_xml_norm_text
(
a
);
...
...
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