Skip to content

Commit 814c55c

Browse files
author
Gabriela Martinez
committed
Added validation to avoid old_password=1 on 5.7.4 or later.
1 parent 6f08bb6 commit 814c55c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/MySql.Data.Tests/MySqlConnectionTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,8 @@ public void PasswordExpiration()
11191119
[Fact]
11201120
public void OldPasswordNotSupported()
11211121
{
1122+
1123+
if (st.Version > new Version(5, 6)) return;
11221124
//get value of flag 'old_passwords'
11231125
MySqlConnectionStringBuilder csb = new MySqlConnectionStringBuilder(st.GetConnectionString(true));
11241126
MySqlConnection con = new MySqlConnection(csb.ToString());

0 commit comments

Comments
 (0)