HHH-6511 - Fixes insert template for PostGis 2.x (test code)

This commit is contained in:
Karel Maesen 2015-04-12 17:20:03 +02:00 committed by Steve Ebersole
parent 9ccd331831
commit e2b44fb130
1 changed files with 1 additions and 1 deletions

View File

@ -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(