diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-05-25 23:12:58 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-05-25 23:12:58 +0000 |
commit | 24c20b014663123fbae487dd2be0e6fc43539685 (patch) | |
tree | f3c5e2c6d23ce705e113ba0cda360e103ad59d41 /lib/sqlalchemy/databases/mysql.py | |
parent | 91e8b20f52e20bae6c9b75ee41eeba13ca676313 (diff) | |
download | sqlalchemy-24c20b014663123fbae487dd2be0e6fc43539685.tar.gz |
- Coerce 'local_infile' mysql connect argument into an int
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r-- | lib/sqlalchemy/databases/mysql.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py index 56967a457..0fe5489fc 100644 --- a/lib/sqlalchemy/databases/mysql.py +++ b/lib/sqlalchemy/databases/mysql.py @@ -969,9 +969,11 @@ class MySQLDialect(ansisql.ANSIDialect): util.coerce_kw_type(opts, 'compress', bool) util.coerce_kw_type(opts, 'connect_timeout', int) util.coerce_kw_type(opts, 'client_flag', int) + util.coerce_kw_type(opts, 'local_infile', int) # note: these two could break SA Unicode type util.coerce_kw_type(opts, 'use_unicode', bool) util.coerce_kw_type(opts, 'charset', str) + # TODO: cursorclass and conv: support via query string or punt? # ssl ssl = {} @@ -982,8 +984,7 @@ class MySQLDialect(ansisql.ANSIDialect): del opts[key] if len(ssl): opts['ssl'] = ssl - - # TODO: what about options like "cursorclass" and "conv" ? + client_flag = opts.get('client_flag', 0) if self.dbapi is not None: try: |