[MDEV-15521] CONNECT XML Table Type Created: 2018-03-09  Updated: 2018-07-09

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 10.2.13
Fix Version/s: 10.2

Type: Bug Priority: Major
Reporter: Eduardo Reyes Assignee: Olivier Bertrand
Resolution: Unresolved Votes: 0
Labels: None
Environment:

openSUSE leap 42.3 x64
4GB RAM, 2CPU, 40GB HDD Virtual Machine on ESXi6


Issue Links:
Relates
relates to MDEV-15535 CONNECT JSON Table Type Closed

 Description   

I have found several issues on the webpage https://mariadb.com/kb/en/library/connect-xml-table-type/

Section: Multiple nodes in the XML document

The first query after the paragraph:
"Because the author column does not appear in the query, the corresponding row was not expanded. This is somewhat strange because this would have been different if we had been working on a table of a different type. However, it is closer to the relational model for which there should not be two identical rows (tuples) in a table. Nevertheless, you should be aware of this somewhat erratic behavior. For instance:"

select count(*) from xsamp2;                /* Replies 4 */

Returns 3 instead of 4

Section: Intermediate multiple node

update xsampall2 set authorfn = 'Simon' where authorln = 'Knab';
select subject, language lang, title, authorfn first,   authorln last, year from xsampall2;

Displays:

SUBJECT	LANG	TITLE	FIRST	LAST	YEAR
applications	fr	Construire une application XML	Jean-Christophe	Bernadac	1999
applications	fr	Construire une application XML	Simon	Knab	1999
applications	fr	XML en Action	William J.	Pardi	1999
général	fr	XML, Langage et Applications	Alain	Michard	1998

update xsampall2 set year = 2002 where authorln = 'Bernadac';
select subject, language lang, title, authorfn first,
  authorln last, year from xsampall2;

Displays:

SUBJECT	LANG	TITLE	FIRST	LAST	YEAR
applications	fr	Construire une application XML	Jean-Christophe	Bernadac	2002
applications	fr	Construire une application XML	Simon	Knab	2002
applications	fr	XML en Action	William J.	Pardi	1999
général	fr	XML, Langage et Applications	Alain	Michard	1998

update xsampall2 set authorln = 'Mercier' where year = 2002;
select subject, language lang, title, authorfn first,
  authorln last, year from xsampall2;

Displays:

SUBJECT	LANG	TITLE	FIRST	LAST	YEAR
applications	fr	Construire une application XML	Jean-Christophe	Mercier	2002
applications	fr	Construire une application XML	Simon	Mercier	2002
applications	fr	XML en Action	William J.	Pardi	1999
général	fr	XML, Langage et Applications	Alain	Michard	1998

Which differs from what appears on the webpage:

SUBJECT	LANG	TITLE	FIRST	LAST	YEAR
applications	fr	Construire une application XML	Jean-Christophe	Mercier	2002
applications	fr	Construire une application XML	François	Knab	2002
applications	fr	XML en Action	William J.	Pardi	1999
général	fr	XML, Langage et Applications	Alain	Michard	1998



 Comments   
Comment by Olivier Bertrand [ 2018-03-12 ]

Thanks for reporting this. Indeed, some bugs have been fixed on the XML type but the documentation is not reflecting them. The doc will be updated.

Generated at Thu Feb 08 08:21:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.