From 5ba7decfc9e45dae2a4e8e30b439d54337ecabcb Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Mon, 6 Jan 2025 08:31:49 +0800 Subject: [PATCH 1/2] This is an automated cherry-pick of #19896 Signed-off-by: ti-chi-bot --- data-type-default-values.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data-type-default-values.md b/data-type-default-values.md index e7e948934722c..e807041e3b8d3 100644 --- a/data-type-default-values.md +++ b/data-type-default-values.md @@ -51,7 +51,11 @@ TiDB supports specifying the following expressions as default values in the `DEF * [`NEXTVAL()`](/functions-and-operators/sequence-functions.md#nextval) * [`RAND()`](/functions-and-operators/numeric-functions-and-operators.md) * [`UUID()`](/functions-and-operators/miscellaneous-functions.md#uuid), [`UUID_TO_BIN()`](/functions-and-operators/miscellaneous-functions.md#uuid_to_bin) +<<<<<<< HEAD * [`VEC_FROM_TEXT()`](/vector-search-functions-and-operators.md#vec_from_text) +======= +* [`VEC_FROM_TEXT()`](/vector-search/vector-search-functions-and-operators.md#vec_from_text) +>>>>>>> 244ca76223 (Update docs for expression defaults (#19685) (#19896)) TiDB supports assigning default values to `BLOB`, `TEXT`, and `JSON` data types. However, you can only use expressions, not literals, to define default values for these data types. The following is an example of `BLOB`: From bde9160c82ff6b6befefd358682b236e4f3b0014 Mon Sep 17 00:00:00 2001 From: xixirangrang Date: Mon, 6 Jan 2025 10:09:46 +0800 Subject: [PATCH 2/2] Update data-type-default-values.md --- data-type-default-values.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/data-type-default-values.md b/data-type-default-values.md index e807041e3b8d3..f9601301be0f6 100644 --- a/data-type-default-values.md +++ b/data-type-default-values.md @@ -51,11 +51,7 @@ TiDB supports specifying the following expressions as default values in the `DEF * [`NEXTVAL()`](/functions-and-operators/sequence-functions.md#nextval) * [`RAND()`](/functions-and-operators/numeric-functions-and-operators.md) * [`UUID()`](/functions-and-operators/miscellaneous-functions.md#uuid), [`UUID_TO_BIN()`](/functions-and-operators/miscellaneous-functions.md#uuid_to_bin) -<<<<<<< HEAD -* [`VEC_FROM_TEXT()`](/vector-search-functions-and-operators.md#vec_from_text) -======= * [`VEC_FROM_TEXT()`](/vector-search/vector-search-functions-and-operators.md#vec_from_text) ->>>>>>> 244ca76223 (Update docs for expression defaults (#19685) (#19896)) TiDB supports assigning default values to `BLOB`, `TEXT`, and `JSON` data types. However, you can only use expressions, not literals, to define default values for these data types. The following is an example of `BLOB`: