diff options
author | Alan Cueva <alan.cuevamr@gmail.com> | 2021-06-15 22:52:51 +0200 |
---|---|---|
committer | Sergei Golubchik <vuvova@gmail.com> | 2021-10-12 13:27:36 +0200 |
commit | e214e60201216b2e6330f86a84fec8ae14aa2887 (patch) | |
tree | 848f5181dd5eead43473ee66c99c67b751cab533 /CMakeLists.txt | |
parent | cd390af982753fadd83b339536ce4d24ea8e5fd0 (diff) | |
download | mariadb-git-e214e60201216b2e6330f86a84fec8ae14aa2887.tar.gz |
MDEV-25015 Custom formatting of strings in MariaDB queries
SFORMAT() SQL function that uses fmtlib (https://fmt.dev/)
for python-like (also Rust, C++20, etc) string formatting
Only fmtlib 7.0.0+ is supported, older fmtlib
produces different results in the test.
No native support for temporal and decimal values,
* TIME_RESULT is handled as STRING_RESULT
* DECIMAL_RESULT as REAL_RESULT
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 00007f92f57..144d092149f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,6 +158,7 @@ INCLUDE(readline) INCLUDE(libutils) INCLUDE(dtrace) INCLUDE(pcre) +INCLUDE(libfmt) INCLUDE(ctest) INCLUDE(plugin) INCLUDE(install_macros) @@ -382,6 +383,7 @@ MYSQL_CHECK_READLINE() SET(MALLOC_LIBRARY "system") CHECK_PCRE() +CHECK_LIBFMT() ADD_SUBDIRECTORY(tpool) CHECK_SYSTEMD() |