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
be36daf7
Commit
be36daf7
authored
Dec 14, 2012
by
Ramil Kalimullin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge from mysql-5.1.
parents
8827794a
2fc4569f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sql/item_xmlfunc.cc
sql/item_xmlfunc.cc
+5
-1
No files found.
sql/item_xmlfunc.cc
View file @
be36daf7
...
@@ -2692,8 +2692,12 @@ int xml_enter(MY_XML_PARSER *st,const char *attr, size_t len)
...
@@ -2692,8 +2692,12 @@ int xml_enter(MY_XML_PARSER *st,const char *attr, size_t len)
node
.
parent
=
data
->
parent
;
// Set parent for the new node to old parent
node
.
parent
=
data
->
parent
;
// Set parent for the new node to old parent
data
->
parent
=
numnodes
;
// Remember current node as new parent
data
->
parent
=
numnodes
;
// Remember current node as new parent
DBUG_ASSERT
(
data
->
level
<=
MAX_LEVEL
);
data
->
pos
[
data
->
level
]
=
numnodes
;
data
->
pos
[
data
->
level
]
=
numnodes
;
node
.
level
=
data
->
level
++
;
if
(
data
->
level
<
MAX_LEVEL
)
node
.
level
=
data
->
level
++
;
else
return
MY_XML_ERROR
;
node
.
type
=
st
->
current_node_type
;
// TAG or ATTR
node
.
type
=
st
->
current_node_type
;
// TAG or ATTR
node
.
beg
=
attr
;
node
.
beg
=
attr
;
node
.
end
=
attr
+
len
;
node
.
end
=
attr
+
len
;
...
...
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