Skip to content

Commit 96d86b9

Browse files
committed
Updated tests to account for GeomFromText() removal from MySQL 8 (GeomFromText() and GeometryFromText() where deprecated in MySQL 5.7.6)
1 parent c83552f commit 96d86b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/com/github/shyiko/mysql/binlog/BinaryLogClientIntegrationTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public void testDeserializationOfSET() throws Exception {
355355

356356
@Test
357357
public void testDeserializationOfGEOMETRY() throws Exception {
358-
assertEquals(writeAndCaptureRow("geometry", "GeomFromText('POINT(40.717957 -73.736501)')"),
358+
assertEquals(writeAndCaptureRow("geometry", "ST_GeomFromText('POINT(40.717957 -73.736501)')"),
359359
new Serializable[]{new byte[] {0, 0, 0, 0, 1, 1, 0, 0, 0, -106, 119, -43, 3, -26, 91, 68,
360360
64, 42, 30, 23, -43, 34, 111, 82, -64}});
361361
}
@@ -540,7 +540,8 @@ public void testUnsupportedColumnTypeDoesNotCauseClientToFail() throws Exception
540540
@Override
541541
public void execute(Statement statement) throws SQLException {
542542
statement.execute("create table geometry_table (location geometry)");
543-
statement.execute("insert into geometry_table values(GeomFromText('POINT(40.717957 -73.736501)'))");
543+
statement.execute(
544+
"insert into geometry_table values(ST_GeomFromText('POINT(40.717957 -73.736501)'))");
544545
statement.execute("drop table geometry_table");
545546
}
546547
});

0 commit comments

Comments
 (0)