Skip to content

Commit babe137

Browse files
committed
Test with newer MariaDB versions.
1 parent bd3906c commit babe137

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -204,14 +204,14 @@ jobs:
204204
'MySQL 8.0':
205205
image: 'mysql:8.0'
206206
unsupportedFeatures: 'Ed25519,Tls11,ZeroDateTime'
207-
'MariaDB 10.2':
208-
image: 'mariadb:10.2'
209-
unsupportedFeatures: 'CachingSha2Password,Ed25519,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
210-
'MariaDB 10.3':
211-
image: 'mariadb:10.3-bionic'
212-
unsupportedFeatures: 'CachingSha2Password,Ed25519,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
213207
'MariaDB 10.4':
214-
image: 'mariadb:10.4.12'
208+
image: 'mariadb:10.4'
209+
unsupportedFeatures: 'CachingSha2Password,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
210+
'MariaDB 10.5':
211+
image: 'mariadb:10.5'
212+
unsupportedFeatures: 'CachingSha2Password,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
213+
'MariaDB 10.6':
214+
image: 'mariadb:10.6'
215215
unsupportedFeatures: 'CachingSha2Password,Json,RoundDateTime,QueryAttributes,Sha256Password,Tls11,UuidToBin'
216216
steps:
217217
- template: '.ci/integration-tests-steps.yml'

tests/SideBySide/DataTypes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,9 @@ public async Task QueryWithGuidParameter(bool oldGuids)
451451
Assert.Equal(oldGuids ? 0L : 1L, (await connection.QueryAsync<long>(@"select count(*) from datatypes_strings where guid = @guid", new { guid = new Guid("fd24a0e8-c3f2-4821-a456-35da2dc4bb8f") }).ConfigureAwait(false)).SingleOrDefault());
452452
Assert.Equal(oldGuids ? 0L : 1L, (await connection.QueryAsync<long>(@"select count(*) from datatypes_strings where guidbin = @guid", new { guid = new Guid("fd24a0e8-c3f2-4821-a456-35da2dc4bb8f") }).ConfigureAwait(false)).SingleOrDefault());
453453
}
454-
catch (MySqlException ex) when (oldGuids && ex.Number == 3854 /* MySqlErrorCode.CannotConvertString */)
454+
catch (MySqlException ex) when (oldGuids && ex.Number is 1300 or 3854) // InvalidCharacterString, CannotConvertString
455455
{
456-
// new error in MySQL 8.0.24
456+
// new error in MySQL 8.0.24, MariaDB 10.5
457457
}
458458
Assert.Equal(oldGuids ? 1L : 0L, (await connection.QueryAsync<long>(@"select count(*) from datatypes_blobs where guidbin = @guid", new { guid = new Guid(0x33221100, 0x5544, 0x7766, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF) }).ConfigureAwait(false)).SingleOrDefault());
459459
}

tests/SideBySide/SchemaProviderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ public async Task GetCharacterSetsSchemaAsync()
8989
var table = await m_database.Connection.GetSchemaAsync("CharacterSets");
9090
Assert.Equal(4, table.Columns.Count);
9191
Assert.Contains("latin1", table.Rows.Cast<DataRow>().Select(x => (string) x[0]));
92-
Assert.Contains("utf8", table.Rows.Cast<DataRow>().Select(x => (string) x[0]));
92+
Assert.Contains("ascii", table.Rows.Cast<DataRow>().Select(x => (string) x[0]));
9393
}
9494

9595
[Fact]
9696
public void GetCollationsSchema()
9797
{
9898
var table = m_database.Connection.GetSchema("Collations");
9999
Assert.Contains("latin1_general_ci", table.Rows.Cast<DataRow>().Select(x => (string) x[0]));
100-
Assert.Contains("utf8_bin", table.Rows.Cast<DataRow>().Select(x => (string) x[0]));
100+
Assert.Contains("ascii_bin", table.Rows.Cast<DataRow>().Select(x => (string) x[0]));
101101
}
102102
#endif
103103

0 commit comments

Comments
 (0)