support for driver mysql.connector, thank you Josiel Santos
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.3-stable+timestamp.2013.09.19.21.32.38
|
Version 2.6.3-stable+timestamp.2013.09.19.21.43.19
|
||||||
|
|||||||
+6
-1
@@ -310,6 +310,11 @@ if not 'google' in DRIVERS:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
LOGGER.debug('no MySQL driver MySQLDB')
|
LOGGER.debug('no MySQL driver MySQLDB')
|
||||||
|
|
||||||
|
try:
|
||||||
|
import mysql.connector as mysqlconnector
|
||||||
|
DRIVERS.append("MySQL(mysqlconnector)")
|
||||||
|
except ImportError:
|
||||||
|
LOGGER.debug("no driver mysql.connector")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import psycopg2
|
import psycopg2
|
||||||
@@ -2445,7 +2450,7 @@ class JDBCSQLiteAdapter(SQLiteAdapter):
|
|||||||
|
|
||||||
|
|
||||||
class MySQLAdapter(BaseAdapter):
|
class MySQLAdapter(BaseAdapter):
|
||||||
drivers = ('MySQLdb','pymysql')
|
drivers = ('MySQLdb','pymysql', 'mysqlconnector')
|
||||||
|
|
||||||
commit_on_alter_table = True
|
commit_on_alter_table = True
|
||||||
support_distributed_transaction = True
|
support_distributed_transaction = True
|
||||||
|
|||||||
Reference in New Issue
Block a user