提交 fbca70e3 编写于 作者: S serge-rider

#6020 PG: structs parser fix (boolean value parser)

上级 0583bafe
......@@ -447,7 +447,7 @@ public class PostgreUtils {
}
}
switch (itemType.getTypeID()) {
case Types.BOOLEAN: return Boolean.valueOf(string);
case Types.BOOLEAN: return string.length() > 0 && Character.toLowerCase(string.charAt(0)) == 't';
case Types.TINYINT: return Byte.parseByte(string);
case Types.SMALLINT: return Short.parseShort(string);
case Types.INTEGER: return Integer.parseInt(string);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册