Author: jan
Date: 2006-03-04 01:36:43 -0600 (Sat, 04 Mar 2006)
New Revision: 8202
Modified:
trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py
Log:
enables options for mysql non-unicode mode
Modified: trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py
2006-03-04 01:22:59 UTC (rev 8201)
+++ trunk/gnue-common/src/datasources/drivers/sql/mysql/mysqldbdrv.py
2006-03-04 07:36:43 UTC (rev 8202)
@@ -73,6 +73,8 @@
* host -- This is the host for your connection (required)
* dbname -- This is the name of the database to use (required)
* port -- This is the port where the server is running (optional)
+* unicode -- Enables/disable unicode connection mode (optional,
default=true)
+* encoding -- This is the GNUe encoding for the database, if unicode mode is
disabled (optional, default="utf-8")
Examples
--------
@@ -123,7 +125,9 @@
'use_unicode': True}
# optional parameters
- for gnueName, dbName in [('host', 'host'), ('port', 'port')]:
+ for gnueName, dbName in [('host', 'host'), ('port', 'port'),
+ ('unicode', 'use_unicode')]:
+
if gnueName in connectData:
if gnueName == 'port':
kwargs [dbName] = int (connectData [gnueName])
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue