Skip to content

Commit f452732

Browse files
committed
BUG19331658: Fix connection pooling with MySQL Fabric
We fix a SyntaxError introduced while pushing.
1 parent f27093e commit f452732

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mysql/connector/fabric/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
HAVE_SSL = True
6262
# pylint: enable=F0401,E0611
6363

64-
import ...connector import connect
64+
import mysql.connector
6565
from ..pooling import MySQLConnectionPool
6666
from ..errors import (
6767
Error, InterfaceError, NotSupportedError, MySQLFabricError, InternalError,
@@ -1188,7 +1188,7 @@ def _connect(self):
11881188
dbconfig['host'] = mysqlserver.host
11891189
dbconfig['port'] = mysqlserver.port
11901190
try:
1191-
self._mysql_cnx = connect(**dbconfig)
1191+
self._mysql_cnx = mysql.connector.connect(**dbconfig)
11921192
except Error as exc:
11931193
if counter == attempts:
11941194
self.reset_cache(mysqlserver.group)

0 commit comments

Comments
 (0)