You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- docker exec -it mysql mysql -uroot -ptest -e "CREATE USER 'mysqltest'@'%' IDENTIFIED BY 'test;key=\"val'; GRANT ALL ON *.* TO mysqltest; CREATE USER 'no_password'@'172.17.0.1';"
12
+
- docker exec -it mysql mysql -uroot -ptest -e "CREATE USER 'mysqltest'@'%' IDENTIFIED BY 'test;key=\"val'; GRANT ALL ON *.* TO mysqltest; CREATE USER 'no_password'@'172.17.0.1'; SET GLOBAL max_allowed_packet=104857600;"
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! -e "CREATE USER mysqltest IDENTIFIED BY 'test;key=\"val'; GRANT ALL ON *.* TO mysqltest;"
16
-
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! -e "CREATE USER no_password;"
15
+
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! -e "CREATE USER mysqltest IDENTIFIED BY 'test;key=\"val'; GRANT ALL ON *.* TO mysqltest; CREATE USER no_password;"
16
+
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" -u root --password=Password12! -e "SET GLOBAL max_allowed_packet=104857600;"
17
17
test_script:
18
18
- cmd: |-
19
19
dotnet test tests\MySqlConnector.Tests --configuration Release
using(varcmd=newMySqlCommand(Invariant($"insert into datatypes.blobs(`{column}`) values(?)"),m_database.Connection)
@@ -481,29 +486,25 @@ public async Task InsertLargeBlobAsync(string column, int size)
481
486
lastInsertId=cmd.LastInsertedId;
482
487
}
483
488
484
-
foreach(varqueryResultinawaitm_database.Connection.QueryAsync<byte[]>(Invariant($"select `{column}` from datatypes.blobs where rowid = {lastInsertId}")).ConfigureAwait(false))
485
-
{
486
-
Assert.Equal(data,queryResult);
487
-
break;
488
-
}
489
+
varqueryResult=(awaitm_database.Connection.QueryAsync<byte[]>(Invariant($"select `{column}` from datatypes.blobs where rowid = {lastInsertId}")).ConfigureAwait(false)).Single();
490
+
TestUtilities.AssertEqual(data,queryResult);
489
491
490
492
awaitm_database.Connection.ExecuteAsync(Invariant($"delete from datatypes.blobs where rowid = {lastInsertId}")).ConfigureAwait(false);
491
493
}
492
494
493
495
[Theory]
494
496
[InlineData("TinyBlob",255)]
495
497
[InlineData("Blob",65535)]
496
-
#if false
497
-
// MySQL has a default max_allowed_packet size of 4MB; without changing the server configuration, it's impossible
0 commit comments