commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r8202 - trunk/gnue-common/src/datasources/drivers/sql/mysql


From: jan
Subject: [gnue] r8202 - trunk/gnue-common/src/datasources/drivers/sql/mysql
Date: Sat, 4 Mar 2006 01:36:43 -0600 (CST)

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])





reply via email to

[Prev in Thread] Current Thread [Next in Thread]