mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 19:31:54 +08:00
Added a bunch of new error codes to MySQLdb.constants.ER (complete for
MySQL-5.0). Mapped some new error codes to DataError, which has always existed, but never had anything mapped to it. Cleaned set_character_set() a bit. Added new connection option sql_mode and correspond set_sql_mode() method.
This commit is contained in:
@ -6,7 +6,10 @@ import MySQLdb
|
||||
class test_MySQLdb(dbapi20.DatabaseAPI20Test):
|
||||
driver = MySQLdb
|
||||
connect_args = ()
|
||||
connect_kw_args = {'db': 'test', 'read_default_file': '~/.my.cnf'}
|
||||
connect_kw_args = dict(db='test',
|
||||
read_default_file='~/.my.cnf',
|
||||
charset='utf8',
|
||||
sql_mode="ANSI,STRICT_TRANS_TABLES,TRADITIONAL")
|
||||
|
||||
def test_setoutputsize(self): pass
|
||||
def test_setoutputsize_basic(self): pass
|
||||
|
Reference in New Issue
Block a user