HHH-6511 - Fixes insert template for PostGis 2.x (test code)
This commit is contained in:
parent
9ccd331831
commit
e2b44fb130
|
@ -31,7 +31,7 @@ import org.hibernate.spatial.testing.TestDataElement;
|
|||
*/
|
||||
public class PostgisExpressionTemplate implements SQLExpressionTemplate {
|
||||
|
||||
static final String SQL_TEMPLATE = "insert into geomtest (id, type, geom) values (%d, '%s', GeomFromText('%s'))";
|
||||
static final String SQL_TEMPLATE = "insert into geomtest (id, type, geom) values (%d, '%s', ST_GeomFromText('%s'))";
|
||||
|
||||
public String toInsertSql(TestDataElement testDataElement) {
|
||||
return String.format(
|
||||
|
|
Loading…
Reference in New Issue