ClickHouse/tests/queries/0_stateless/01621_decode_XML.sql
2021-01-09 19:08:19 +08:00

20 lines
1.1 KiB
SQL

SELECT decodeXMLComponent('Hello, "world"!');
SELECT decodeXMLComponent('<123>');
SELECT decodeXMLComponent('&clickhouse');
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
SELECT decodeXMLComponent(' !"#$%&'()*+,-./012');
SELECT decodeXMLComponent(')*+,-./0123456789:&#59;<');
SELECT decodeXMLComponent('=>?@ABCDEFGHIJKLMNOP');
SELECT decodeXMLComponent('为');
SELECT decodeXMLComponent('为');
SELECT decodeXMLComponent('�'123');
SELECT decodeXMLComponent('ЦЦЮЮЫㄱ');