mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@@ -1517,9 +1517,13 @@ bool XMLCOL::ParseXpath(PGLOBAL g, bool mode)
|
||||
if (!mode)
|
||||
// Take care of an eventual extra column node a la html
|
||||
if (Tdbp->Colname) {
|
||||
sprintf(pbuf, Tdbp->Colname, Rank + ((Tdbp->Usedom) ? 0 : 1));
|
||||
strcat(pbuf, "/");
|
||||
} // endif Colname
|
||||
char *p = strstr(Tdbp->Colname, "%d");
|
||||
if (p)
|
||||
snprintf(pbuf, len + 3, "%.*s%d%s/", (int) (p - Tdbp->Colname), Tdbp->Colname,
|
||||
Rank + (Tdbp->Usedom ? 0 : 1), p + 2);
|
||||
else
|
||||
snprintf(pbuf, len + 3, "%s/", Tdbp->Colname);
|
||||
} // endif Colname
|
||||
|
||||
if (Xname) {
|
||||
if (Type == 2) {
|
||||
@@ -1809,6 +1813,9 @@ void XMLCOL::WriteColumn(PGLOBAL g)
|
||||
else if (Tdbp->Clist)
|
||||
ColNode = NULL;
|
||||
|
||||
// refresh CList in case its Listp was freed in SelectSingleNode above
|
||||
if (Tdbp->Clist)
|
||||
Tdbp->RowNode->SelectNodes(g, Tdbp->Colname, Tdbp->Clist);
|
||||
} // endfor i
|
||||
|
||||
/*********************************************************************/
|
||||
|
Reference in New Issue
Block a user