ClickHouse/tests/queries/0_stateless/01621_decode_XML.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
1.1 KiB
MySQL
Raw Normal View History

2020-12-26 08:00:35 +00:00
SELECT decodeXMLComponent('Hello, "world"!');
SELECT decodeXMLComponent('<123>');
SELECT decodeXMLComponent('&clickhouse');
2021-01-05 13:08:36 +00:00
SELECT decodeXMLComponent(''foo'');
SELECT decodeXMLComponent('Hello, && world');
SELECT decodeXMLComponent('Hello, &;& world');
SELECT decodeXMLComponent('Hello, &a;& world');
SELECT decodeXMLComponent('Hello, &ltt;& world');
SELECT decodeXMLComponent('Hello, &ltt& world');
SELECT decodeXMLComponent('Hello, &t;& world');
--decode numeric entities
2021-01-09 11:08:19 +00:00
SELECT decodeXMLComponent(' !"#$%&'()*+,-./012');
2021-01-05 13:08:36 +00:00
SELECT decodeXMLComponent(')*+,-./0123456789:&#59;<');
SELECT decodeXMLComponent('=>?@ABCDEFGHIJKLMNOP');
2021-01-09 11:08:19 +00:00
SELECT decodeXMLComponent('为');
SELECT decodeXMLComponent('为');
SELECT decodeXMLComponent('�'123');
SELECT decodeXMLComponent('ЦЦЮЮЫㄱ');