summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2006-03-06 05:33:01 +0000
committeradustman <adustman@9fc6cd9a-920d-0410-adcf-ac96716ed7e8>2006-03-06 05:33:01 +0000
commite5d609b344ae553a10015c5124508ed3e6e4e6e3 (patch)
treedcd8e8058c8d6e01362a6ae46360e1392d61bc42
parent3c3ef08720e482265ab9c03d190c519331753d36 (diff)
downloadmysqldb1-e5d609b344ae553a10015c5124508ed3e6e4e6e3.tar.gz
Added documentation for sql_mode support.
-rw-r--r--MySQLdb/MySQLdb/connections.py5
-rw-r--r--MySQLdb/doc/MySQLdb.txt9
2 files changed, 14 insertions, 0 deletions
diff --git a/MySQLdb/MySQLdb/connections.py b/MySQLdb/MySQLdb/connections.py
index 3fcab58..dbaf51f 100644
--- a/MySQLdb/MySQLdb/connections.py
+++ b/MySQLdb/MySQLdb/connections.py
@@ -100,6 +100,11 @@ class Connection(_mysql.connection):
If supplied, the connection character set will be changed
to this character set (MySQL-4.1 and newer). This implies
use_unicode=True.
+
+ sql_mode
+ If supplied, the session SQL mode will be changed to this
+ setting (MySQL-4.1 and newer). For more details and legal
+ values, see the MySQL documentation.
client_flag
integer, flags to use or 0
diff --git a/MySQLdb/doc/MySQLdb.txt b/MySQLdb/doc/MySQLdb.txt
index 077ddd0..fbc86e5 100644
--- a/MySQLdb/doc/MySQLdb.txt
+++ b/MySQLdb/doc/MySQLdb.txt
@@ -349,6 +349,15 @@ connect(parameters...)
*This must be a keyword parameter.*
+ sql_mode
+ If present, the session SQL mode will be set to the given
+ string. For more information on sql_mode, see the MySQL
+ documentation. Only available for 4.1 and newer servers.
+
+ If not present, the session SQL mode will be unchanged.
+
+ *This must be a keyword parameter.*
+
ssl
This parameter takes a dictionary or mapping, where the
keys are parameter names used by the mysql_ssl_set_ MySQL