[jOOQ/jOOQ#13143] DataType.isSpatial() must be available in OSS edition

This commit is contained in:
Lukas Eder 2022-03-09 11:55:53 +01:00
parent ed778cf7b3
commit bf48e7224c
2 changed files with 9 additions and 18 deletions

View File

@ -1075,13 +1075,8 @@ public interface DataType<T> extends Named {
*/
boolean isXML();
/**
* Whether this data type is a spatial type.
*/
boolean isSpatial();
}

View File

@ -757,15 +757,11 @@ implements
return tType0() == XML.class;
}
@Override
public final boolean isSpatial() {
Class<?> tType = tType0();
return tType == Geometry.class || tType == Geography.class;
}
@Override
public final void accept(Context<?> ctx) {