基本信息系统 : CentOS Linux release 7.4.1708 (Core) 产品 : OushuDB 模块 : DB 子模块 : -描述详述原因是PostgreSQL独有的错误信息,直接原因是varchar型的字段或变量不接受含有'\0'(也即数值0x00、UTF编码'\u0000')的字符串 。 官方给出的解决方法:事先去掉字符串中的'\0',例如在Java代码中使用str.replaceAll('\u0000', ''), 貌似这是目前唯一可行的方法。解决方案sed -i 's/\x00//g;' fileAuthor:ayeeURL:http://preview.tangly1024.com/article/3768d88b-b050-805d-9b2f-dbac2271d462Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!Relate Posts简单介绍一下GaussDB家族(实验版)OpenGauss数据库安装与操作oushuDB之pgcrypto加密解密oushuDB之filespace&&tablespaceoushuDB之目录结构介绍oushuDB之IDLE in transactionoushuDB之bigint but expression is of type character varyingoushuDB之FATAL: terminating connection due to administrator command