kingbase migration - The length (2) of the bit string does not match the bit type (1).

Do mysql to kingbase8 today. After the migration is complete, the error is reported as follows

Caused by: com. kingbase8. util. KSQLException:错误: bit字符串的长度(2)与bit类型(1)不匹配.
Where: COPY nontax_ autoallot_ out, 行1,列ftype
at com.kingbase8.core.v3.QueryExecutorImpl.receiveErrorResponse(@ueryExecutorImpl.java:2678)
at com.kingbase8.core.v3.QueryExecutorImpl.processCopyResults(QueryExecutorImpl. java:1204)
at com.kingbase8.core. v3.QueryExecutorImpl.endCopy(QueryExecutorImpl.java:1043)

But I actually looked at the watch

Ask the technical staff later to know that in mysql to kingbase8, tinyint will be converted to bit format by default

At this time, a parameter needs to be added

Solved it.


The blogger’s newly launched gitee free open source project (mall + APP + applet + H5), interested friends can learn about it.

Fresh food mall kxmall-small program + App + official account H5: kxmall-fresh food mall + APP + small program + H5. At the same time, it supports WeChat applets, H5, Android App, and Apple App. Supports cluster deployment and stand-alone deployment. It can be used in B2C malls, O2O takeaways, community supermarkets, and fresh food [with a matching rider-end delivery system]. kxmall uses uniapp encoding. Use Java development, SpringBoot 2.1.x framework, MyBatis-plus persistence layer framework, Redis as cache, MySql as database. The front-end vuejs is used as the development language.

Guess you like

Origin blog.csdn.net/qq_38377190/article/details/128581308
Bit
BIT