mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
6 lines
302 B
MySQL
6 lines
302 B
MySQL
|
-- Regression for UB (stack-use-after-scope) in extactAll()
|
||
|
SELECT
|
||
|
'{"a":"1","b":"2","c":"","d":"4"}{"a":"1","b":"2","c":"","d":"4"}{"a":"1","b":"2","c":"","d":"4"}{"a":"1","b":"2","c":"","d":"4"}' AS json,
|
||
|
extractAll(json, '"([^"]*)":') AS keys,
|
||
|
extractAll(json, ':"\0[^"]*)"') AS values;
|