Apache Doris 中文技术论坛
Questions Tags Users Badges

odbc从doris4.0读取含有emoji表情符号时异常

Asked Feb 3 Modified Feb 4
Viewed 25
query 4.0

当数据库的字段内容包含4字节字符(emoji表情)时,ODBC有如下错误:
使用SQLExecDirect+SQLBindCol+SQLFetch,SQLFetch报22018错误。
使用SQLExecDirect+SQLGetData,返回的内容4字节的是?。

odbc驱动:8.0.37
doris:4.0
字段类型:varchar(768)
odbc.ini:charset=utf8mb4
异常字符:👉🈂

edited Feb 4
dlbfp1
asked Feb 3
1 Answers

这有一个jdbc的案例你可以参考下
https://doris.apache.org/zh-CN/docs/4.x/lakehouse/catalogs/jdbc-mysql-catalog#%E5%85%B6%E4%BB%96%E9%97%AE%E9%A2%98

edited Jan 1, 1970
徐振超@SelectDB8151
answered Feb 11
Related Questions
odbc从doris4.0读取含有emoji表情符号时异常
1 answers
doris 4.x版本,请问 variant的子列单独设置的时候只支持text类型吗?
1 answers
Doris 索引问题
1 answers
Doris 4.0.2 MD5函数导致BE内存过高问题
1 answers
streamload使用jsonroot导入超大数组chunk问题
1 answers
服务器Doris数据库的数据盘为SSD,为何创建表的时候,提示我没有找到SSD,只能使用HDD呢
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.