From ee371f4acf7052acf9b05eccea48944aabe9c4c5 Mon Sep 17 00:00:00 2001 From: He Bomou Date: Mon, 21 Apr 2025 20:34:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(IC125I):=20=E8=A1=A5=E5=85=85=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=20B=20=E5=BA=93=20convert=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E7=9A=84=E7=9B=B8=E5=85=B3=20GUC=20=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...45\222\214\346\223\215\344\275\234\347\254\246.md" | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git "a/content/zh/docs/ExtensionReference/dolphin-\345\255\227\347\254\246\345\244\204\347\220\206\345\207\275\346\225\260\345\222\214\346\223\215\344\275\234\347\254\246.md" "b/content/zh/docs/ExtensionReference/dolphin-\345\255\227\347\254\246\345\244\204\347\220\206\345\207\275\346\225\260\345\222\214\346\223\215\344\275\234\347\254\246.md" index 0b629616c..3016b0ea7 100644 --- "a/content/zh/docs/ExtensionReference/dolphin-\345\255\227\347\254\246\345\244\204\347\220\206\345\207\275\346\225\260\345\222\214\346\223\215\344\275\234\347\254\246.md" +++ "b/content/zh/docs/ExtensionReference/dolphin-\345\255\227\347\254\246\345\244\204\347\220\206\345\207\275\346\225\260\345\222\214\346\223\215\344\275\234\347\254\246.md" @@ -363,16 +363,17 @@ (1 row) ``` -- convert(expr using transcoding_name) +- `convert(expr using transcoding_name)` - 描述:通过transcoding_name指定的编码方式转换expr; - 注意:默认库中支持如下格式: convert(string bytea, src_encoding name, dest_encoding name);以dest_encoding指定的编码方式转换bytea,dolphin下支持通过using关键字后transcoding_name指定要转换的编码方式,对expr进行转换,不支持上述三个参数的表示方式。 + 描述:通过 `transcoding_name` 指定的编码方式转换 `expr`。 + 注意:默认库中支持如下格式:`convert(string bytea, src_encoding name, dest_encoding name)`,以 `dest_encoding` 指定的编码方式转换 `bytea`;dolphin 下支持通过 `using` 关键字后 `transcoding_name` 指定要转换的编码方式,对 `expr` 进行转换,不支持上述三个参数的表示方式。 + 另外,该函数需要在 GUC 参数 `b_format_behavior_compat_options` 包含 `enable_multi_charset` 时才可生效。 - 返回值类型:text + 返回值类型:`text` 示例: - ``` + ```sql b_compatibility_database=# select convert('a' using 'utf8'); convert --------- -- Gitee