From 4bd66f41879b8bc4a3f57bad790cc87e0cf2b5fb Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Fri, 6 Sep 2024 17:31:20 +0000 Subject: [PATCH] Add test --- .../00170_lower_upper_utf8_memleak.reference | 1 + .../0_stateless/00170_lower_upper_utf8_memleak.sh | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tests/queries/0_stateless/00170_lower_upper_utf8_memleak.reference create mode 100755 tests/queries/0_stateless/00170_lower_upper_utf8_memleak.sh diff --git a/tests/queries/0_stateless/00170_lower_upper_utf8_memleak.reference b/tests/queries/0_stateless/00170_lower_upper_utf8_memleak.reference new file mode 100644 index 00000000000..7f6160bace3 --- /dev/null +++ b/tests/queries/0_stateless/00170_lower_upper_utf8_memleak.reference @@ -0,0 +1 @@ +españa diff --git a/tests/queries/0_stateless/00170_lower_upper_utf8_memleak.sh b/tests/queries/0_stateless/00170_lower_upper_utf8_memleak.sh new file mode 100755 index 00000000000..8436659c6a8 --- /dev/null +++ b/tests/queries/0_stateless/00170_lower_upper_utf8_memleak.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# Tags: no-fasttest +# no-fasttest: upper/lowerUTF8 use ICU + +# Test for issue #69336 + +CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +# shellcheck source=../shell_config.sh +. "$CURDIR"/../shell_config.sh + +$CLICKHOUSE_LOCAL --query "SELECT lowerUTF8('ESPAÑA')"