File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ public void ConnectBadDatabase()
63
63
// https://bugs.mysql.com/bug.php?id=78426
64
64
Assert . NotNull ( ex ) ;
65
65
#else
66
- Assert . Equal ( ( int ) MySqlErrorCode . UnknownDatabase , ex . Number ) ;
66
+ if ( AppConfig . SupportedFeatures . HasFlag ( ServerFeatures . ErrorCodes ) || ex . Number != 0 )
67
+ Assert . Equal ( ( int ) MySqlErrorCode . UnknownDatabase , ex . Number ) ;
67
68
#endif
68
69
}
69
70
Assert . Equal ( ConnectionState . Closed , connection . State ) ;
@@ -88,7 +89,8 @@ public void ConnectBadPassword()
88
89
// https://bugs.mysql.com/bug.php?id=73610
89
90
Assert . NotNull ( ex ) ;
90
91
#else
91
- Assert . Equal ( ( int ) MySqlErrorCode . AccessDenied , ex . Number ) ;
92
+ if ( AppConfig . SupportedFeatures . HasFlag ( ServerFeatures . ErrorCodes ) || ex . Number != 0 )
93
+ Assert . Equal ( ( int ) MySqlErrorCode . AccessDenied , ex . Number ) ;
92
94
#endif
93
95
}
94
96
Assert . Equal ( ConnectionState . Closed , connection . State ) ;
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ public enum ServerFeatures
14
14
CachingSha2Password = 32 ,
15
15
SessionTrack = 64 ,
16
16
Timeout = 128 ,
17
+ ErrorCodes = 256 ,
17
18
}
18
19
}
You can’t perform that action at this time.
0 commit comments