提交 63bebd94 编写于 作者: S Serge Rider

Geometry value bind refactoring

上级 e27ce052
......@@ -79,10 +79,14 @@ public class GISGeometryValueHandler extends JDBCAbstractValueHandler {
} else if (value instanceof byte[]) {
bindBytes(statement, paramIndex, (byte[]) value);
} else if (value instanceof Geometry) {
bindBytes(statement, paramIndex, convertGeometryToBinaryFormat(session, (Geometry)value));
bindGeometryParameter(session, statement, paramIndex, (Geometry) value);
}
}
protected void bindGeometryParameter(JDBCSession session, JDBCPreparedStatement statement, int paramIndex, Geometry value) throws SQLException, DBCException {
bindBytes(statement, paramIndex, convertGeometryToBinaryFormat(session, value));
}
@Override
public Class<?> getValueObjectType(DBSTypedObject attribute) {
return DBGeometry.class;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册