Skip to content

Commit 140f572

Browse files
committed
Fix tests for MariaDB.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent c344032 commit 140f572

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/IntegrationTests/InsertTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@ public async Task SendLongData(int dataLength, int chunkLength, bool isAsync)
526526
writeCommand.ExecuteNonQuery();
527527

528528
using var readLengthCommand = new MySqlCommand("select length(value) from insert_mysql_long_data order by rowid;", connection);
529-
Assert.Equal(chunkStream.Length, readLengthCommand.ExecuteScalar());
529+
using var reader = readLengthCommand.ExecuteReader();
530+
Assert.True(reader.Read());
531+
Assert.Equal(chunkStream.Length, reader.GetInt32(0));
530532
}
531533

532534
[Theory]

0 commit comments

Comments
 (0)