DOCAPI-5436: Clarification of the 'empty' function description.

This commit is contained in:
BayoNet 2019-02-27 21:27:29 +03:00
parent c4c891e8b7
commit 720d44837a
3 changed files with 4 additions and 4 deletions

View File

@ -47,6 +47,6 @@ WHERE a = 'b\0'
This behavior differs from MySQL behavior for the `CHAR` type (where strings are padded with spaces, and the spaces are removed for output).
Note that the length of the `FixedString` value is constant even if it is filled with null bytes. The `empty` and `notEmpty` functions do not work correctly with the `FixedString` data type.
Note that the length of the `FixedString` value is constant even if it is filled with null bytes only. The [empty](../query_language/functions/string_functions.md#string_functions-empty) functions returns `1` if the `FixedString` value contains the null bytes only.
[Original article](https://clickhouse.yandex/docs/en/data_types/fixedstring/) <!--hide-->

View File

@ -1,6 +1,6 @@
# Functions for working with strings
## empty
## empty {#string_functions-empty}
Returns 1 for an empty string or 0 for a non-empty string.
The result type is UInt8.

View File

@ -1,6 +1,6 @@
# Функции для работы со строками
## empty
## empty {#string_functions-empty}
Возвращает 1 для пустой строки, и 0 для непустой строки.
Тип результата - UInt8.
Строка считается непустой, если содержит хотя бы один байт, пусть даже это пробел или нулевой байт.
@ -68,4 +68,4 @@
## tryBase64Decode(s)
Функционал аналогичен base64Decode, но при невозможности декодирования возвращает пустую строку.
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/string_functions/) <!--hide-->
[Оригинальная статья](https://clickhouse.yandex/docs/ru/query_language/functions/string_functions/) <!--hide-->