Commit 21d9c582 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix bug MDEV-5928

modified:
  storage/connect/tabxml.cpp
parent 70e865cc
...@@ -1326,14 +1326,11 @@ void XMLCOL::WriteColumn(PGLOBAL g) ...@@ -1326,14 +1326,11 @@ void XMLCOL::WriteColumn(PGLOBAL g)
if (Value != To_Val) if (Value != To_Val)
Value->SetValue_pval(To_Val, false); // Convert the updated value Value->SetValue_pval(To_Val, false); // Convert the updated value
if (Value->IsNull())
return;
/*********************************************************************/ /*********************************************************************/
/* If a check pass was done while updating, all node contruction */ /* If a check pass was done while updating, all node contruction */
/* has been already one. */ /* has been already one. */
/*********************************************************************/ /*********************************************************************/
if (Status && Tdbp->Checked) { if (Status && Tdbp->Checked && !Value->IsNull()) {
assert (ColNode != NULL); assert (ColNode != NULL);
assert ((Type ? (void *)ValNode : (void *)AttNode) != NULL); assert ((Type ? (void *)ValNode : (void *)AttNode) != NULL);
goto fin; goto fin;
...@@ -1346,6 +1343,12 @@ void XMLCOL::WriteColumn(PGLOBAL g) ...@@ -1346,6 +1343,12 @@ void XMLCOL::WriteColumn(PGLOBAL g)
if (Tdbp->CheckRow(g, Nod || Tdbp->Colname)) if (Tdbp->CheckRow(g, Nod || Tdbp->Colname))
longjmp(g->jumper[g->jump_level], TYPE_AM_XML); longjmp(g->jumper[g->jump_level], TYPE_AM_XML);
/*********************************************************************/
/* Null values are represented by no node. */
/*********************************************************************/
if (Value->IsNull())
return;
/*********************************************************************/ /*********************************************************************/
/* Find the column and value nodes to update or insert. */ /* Find the column and value nodes to update or insert. */
/*********************************************************************/ /*********************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment