Downgrade H2

This commit is contained in:
Karel Maesen 2021-11-11 13:08:34 +01:00
parent e48da8d52c
commit f4909b7046
2 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,7 @@ sourceSets.test.resources {
}
tasks.test {
// for now we cannot run with 'h2' project.db due to compatability issues H2 requires 4.200 but H2GIS 1.5 needs 4.197
enabled = ['pgsql',
'h2',
'pgsql_ci',

View File

@ -34,6 +34,7 @@ public class GeometryLiteralFormatter<T> implements JdbcLiteralFormatter<T> {
SqlAppender appender, T value, Dialect dialect, WrapperOptions wrapperOptions) {
Geometry<?> geom = javaType.unwrap( value, Geometry.class, wrapperOptions );
appender.appendSql( geomFromTextName );
appender.appendSql("('");
appender.appendSql( Wkt.toWkt( geom, wktDialect ) );
appender.appendSql( "'," );
appender.appendSql( ( Math.max( geom.getSRID(), 0 ) ) );