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

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

Asked Feb 3 Modified Feb 4
Viewed 32
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
徐振超@SelectDB(可以直接加微信Faith_xzc)8201
answered Feb 11
Related Questions
倒排索引match返回结果不正确
1 answers
[Bug] Arrow Flight SQL 在大数据量下出现 StringArray 偏移量损坏与内存越界
Doris无法查询information_schema.tables表信息
1 answers
flink-doris-connector-1.20.24.0.0 2pc ,checkpoint处恢复数据重复
1 answers
odbc从doris4.0读取含有emoji表情符号时异常
1 answers
Doris 4.0.2 MD5函数导致BE内存过高问题
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 中文技术论坛.