Skip to content

Commit 37d01d6

Browse files
committed
Delete SRID in tests.
This improves compatibility with other MySQL servers and doesn't materially affect the test case. Signed-off-by: Bradley Grainger <[email protected]>
1 parent 52879e6 commit 37d01d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/IntegrationTests/BulkLoaderAsync.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,14 +647,14 @@ public async Task BulkCopyGeometryAsync()
647647
},
648648
Rows =
649649
{
650-
new object[] { MySqlGeometry.FromWkb(4326, [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 63, 0, 0, 0, 0, 0, 0, 240, 63]) },
650+
new object[] { MySqlGeometry.FromWkb(0, [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 63, 0, 0, 0, 0, 0, 0, 240, 63]) },
651651
},
652652
};
653653

654654
using var connection = new MySqlConnection(GetLocalConnectionString());
655655
await connection.OpenAsync();
656656
using (var cmd = new MySqlCommand(@"drop table if exists bulk_load_data_table;
657-
create table bulk_load_data_table(id BIGINT UNIQUE NOT NULL AUTO_INCREMENT, geo_data GEOMETRY SRID 4326 NOT NULL);", connection))
657+
create table bulk_load_data_table(id BIGINT UNIQUE NOT NULL AUTO_INCREMENT, geo_data GEOMETRY NOT NULL);", connection))
658658
{
659659
await cmd.ExecuteNonQueryAsync();
660660
}

tests/IntegrationTests/BulkLoaderSync.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,14 +1296,14 @@ public void BulkCopyGeometry()
12961296
},
12971297
Rows =
12981298
{
1299-
new object[] { MySqlGeometry.FromWkb(4326, [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 63, 0, 0, 0, 0, 0, 0, 240, 63]) },
1299+
new object[] { MySqlGeometry.FromWkb(0, [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 63, 0, 0, 0, 0, 0, 0, 240, 63]) },
13001300
},
13011301
};
13021302

13031303
using var connection = new MySqlConnection(GetLocalConnectionString());
13041304
connection.Open();
13051305
using (var cmd = new MySqlCommand(@"drop table if exists bulk_load_data_table;
1306-
create table bulk_load_data_table(id BIGINT UNIQUE NOT NULL AUTO_INCREMENT, geo_data GEOMETRY SRID 4326 NOT NULL);", connection))
1306+
create table bulk_load_data_table(id BIGINT UNIQUE NOT NULL AUTO_INCREMENT, geo_data GEOMETRY NOT NULL);", connection))
13071307
{
13081308
cmd.ExecuteNonQuery();
13091309
}

0 commit comments

Comments
 (0)