Skip to content

Commit 3be9f7b

Browse files
committed
Fix C API mysql_get_character_set_info() test
This patch fixes the C API mysql_get_character_set_info() test failure, which was introduced by changes in MySQL 8.0.30 and 5.7.38. Change-Id: I964efce78beb145da58b82b274a801a22c5dfcc2
1 parent 06f5eb0 commit 3be9f7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/cext/test_cext_api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import tests
4040

4141
from mysql.connector.constants import ClientFlag, ServerFlag
42+
from mysql.connector.version import VERSION
4243

4344
try:
4445
from _mysql_connector import MySQL, MySQLError, MySQLInterfaceError
@@ -295,7 +296,9 @@ def test_get_character_set_info(self):
295296

296297
exp = {
297298
"comment": "",
298-
"name": "utf8_general_ci",
299+
"name": "utf8mb3_general_ci"
300+
if VERSION[:3] >= (8, 0, 30)
301+
else "utf8_general_ci",
299302
"mbmaxlen": 3,
300303
"number": 33,
301304
"mbminlen": 1,

0 commit comments

Comments
 (0)